The CreatorCon Call for Content is officially open! Get started here.

Notification if any outbound email bounces back.

suvro
Mega Sage

Hi Friends,

We were giving demo to our customers of our developments and while showing them the notifications they asked a question, "Is there any way to notify users if outbound mails bounce back?"

Request you to help me out with this. What can be done, to notify users if any of the outbound mail bounces back.

Thanks and Regards,

Chandra

12 REPLIES 12

Actually you could start analysing the undelivered responses by logging them separately.



Still the scenario above, but



var Mailresponse=current.body_text;


//cleanup here (remove irrelevant text)



/*


syslog_list.do? sysparm_query=sys_created_onONToday%40javascript%3Ags.daysAgoStart(0)%40javascript%3Ags.daysAgoEnd(0)%5Esource%3Dbounced%20email


*/


gs.log(MailResponse,"bounced email");



If I am not mistaken bounced emails can contain a nameless attachment with the error details. These could be extracted too.



Gerrit Kuilder


Hi, is there a way where we can notify the assigned to person of the task that email has been undelivered. because bounce back emails are not associated with any target , how can we achieve this ? 

Hi, All email transactions are stored in 'sys_email' table. If emails are bounce back due to any reason check the state of the transaction and create business rule and notify.

1. Create a Event.

2. Create a notification template

3. Create a business rule part of sys_email table and state

4. use gs.eventQueue() function and call the notification in the business rule.

Regards,
Suresh.

Hi there, 

Did you ever find a  solution to this? We are looking into the same thing and are unable to determine a way to correlate the email to the task is was sent for.  

Hi Melissa, 

What I did for this is 
The undelivered message has attachment of the original message 
All our original messages have Task numbers in subject
Created a business rule whenever the Delivery failure email was received 
In the business rule , I am reading the attachment file to get the task number 
And then sending notification to concerned team that delivery failure has occurred for this particular task