tags:

views:

37

answers:

2

i need to check if the mail is sent to specified user successfully but this function returns no error for the email addresses that even doesnt exists

how to handle this

+1  A: 

You can't handle this. The mail server only rejects addresses that it knows are incorrect. Any address that might exist has to be passed along to the recieving mail server that can determine if it knows what to do about it.

For any incorrect address you will normally get an error mail back to the sender address.

Guffa
+1  A: 

Only server can know if the address is correct because the server really tries to send email to recipient. Client does not have any means to know that because it talks only to it's own server. That's why most of the sites use 2-step user registration: 1. User enters email and site sends confirmation to the address 2. User must click a link in the confirmation email to prove that email is correct. Only after that new user gets accepted.

spbfox