Email condition

i want to send an email with attached file using smtp mail.i have to set the condition that if the email is not send i have to throw an exception how it can be done pls help

Use smtp Mail Message Activity inside try catch Activity. So, if somehow any error come and Mail can not be sent than it will catch an Exception.
Screenshot (44)

Hi @alan_prakash,

It is not possible to test whether the e-mail was sent or not. If the other party sees you as spam, there is nothing you can do about it.

You can catch potential smtp related errors using try catch.



In the catch section we have to throw an exceptio right

Yes, you can select system exception. It won’t make much difference.

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.