cancel
Showing results for 
Search instead for 
Did you mean: 

Check if mail sent from workflow has failed in SAPUI5 application

former_member580089
Discoverer
0 Kudos

Hi,

I have a requirement to check whether the mail sent from a workflow instance has failed or not. This may be due to entering a wrong email id, mail server error or any other error. Based on the kind of error I would send another email to the concerned. Is this possible? Would i be able to do this in the fullstack web ide?

Accepted Solutions (0)

Answers (2)

Answers (2)

michael_sutter
Explorer
0 Kudos

Hi Emrald,


can you please share some more details on your use case? In general there can be several errors sending a mail which most likely need to be treated in different ways - if those can be handled in any way.

Is it your intention to verify if the mail server configuration is correct at all? Do you maybe want to verify if all receipents received the mail? In which cases you want to send an additional mail?

Kind regards,

Michael

former_member580089
Discoverer
0 Kudos

I need to able to know if a mail has been sent to a particular recipient. If it hasn't been sent, then I have to manually send the mail to the concerned. This is the requirement in a nut shell. Hope it helps.

Regards,

Emrald

tobias_breyer
Contributor
0 Kudos

Hi Emrald,

most mail servers exposed on the internet (sometimes called "edge" mail servers) cannot validate whether a mail is actually received, because they only forward a message to a server that actually can do. If they can, they do only validate whether they are able to actually send to a certain mail address after having being handed in a mail, in an asynchronous manner. This is done for security / anti-spam reasons. Corporate mail servers (in intranets) are more likely to validate this directly (synchronously) when being handed-in a mail that is to be delivered company-internal.

In the asynchronous case, they report errors by non-delivery report mails, which should typically (depending on the mail server) go to the configured From address of the mail destination of the workflow service. As there is no built-in means to read and act on such non-delivery reports automatically, you would have to build such a mechanism with some other tool - or just respond manually (depending on the mail server, the non-delivered mail is attached to the NDR mail).

There are many more approaches to your problem, but they are either "low-level SMTP" like delivery status notifications (not supported by workflow service) or they are achieved through intermediate tracking services. See https://en.wikipedia.org/wiki/Email_tracking

Best regards,

Tobias

former_member186746
Active Contributor
0 Kudos

Hi,

Does this happen a lot? Because you can also fix the problem without automation but with monitoring SOST for errors in sending email.

If I were to have this requirement to automate the process then first thing I would do is check in RSCONN01 if there are enhancements available for triggering an event when a send has failed.

Kind regards, Rob Dielemans