function activeUserEmailOr(fallback) {
var email = '';
try { email = Session.getActiveUser().getEmail(); } catch (e) {}
if (!email) { try { email = Session.getEffectiveUser().getEmail(); } catch (e) {} }
if (!email) email = PropertiesService.getScriptProperties().getProperty('OPERATOR_EMAIL') || '';
return email || fallback || '';
}