+ Start a Discussion
SubhaSubha 

How to check email

when I have given a mail with the valid format... but the mail actually doesn't exists.. It is not showing any error . I just want to handle such situation .Can anyone help.

RaumilRaumil

Hello Friend,

 

I think you are using Messaing.sendEmail class in code. So for handling such situations use try and catch block.

SubhaSubha

I wont throw an exception.. It will try to send the mail and mean while the rest of the code will be excetuted.. and if it fails to send then it wil give a failure mail to our mail id...But mean while all other code will be excetuted which should not happen...