Conditional response emails
Conditional response emails
Some email mailboxes shall only send an automatic email response if the email has not been sent by a specific address or addressee. For example in principle no reply email will be sent if the sender is a non reply address. These are typically emails that have been created automatically. The following script implements this requirement:
if(fromEmail.indexOf("noreply")<0)
{
helper.sendmail(task.source.sourcemailbox.emailAddress,
"Re: "+message.getSubject()+" (ID: "+task.id+")",
"Thank you for your request.",
fromEmail);
}