• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Sending mail - Get a Complete Control

#1
[eluser]KLODEnet di Stefano Surricchio[/eluser]
Hi,
I'm developing a web application, but I would need to carry out checks before sending an e-mail. For example, I can withdraw at the end of transmission errors, and previously I would like to know the status of the e-mail (if it exists, if there is in a blacklist, etc..)

The problem is that if I were to send 100 e-mail, and of these 50 give an error, the customer would receive 50 e-mail with the specified error (eg e-mail indirzzo nonexistent). I would avoid it.

Maybe it would be possible to send a test before the real send?

Thank you for your invaluable help.

#2
[eluser]smilie[/eluser]
Well, only thing I can think of is to use some class which will:

1) find out MX record for each e-mail address;
2) establish connection to the mail server from MX record;
3) send couple of commands, starting an e-mail.

In case e-mail address is not recognized by the mail server, you will know that that e-mail will bounce.

You can also use this class:

http://code.google.com/p/blogchuck/wiki/EmailsClass
download from: http://code.google.com/p/blogchuck/sourc...emails.php

as it says in Wiki, second param to the class (TRUE) will also do the SMTP validation as explained above.

Do note, that this will rather slow down your e-mail batch, so if needed set up higher PHP execution time.

Cheers,
Smilie

#3
[eluser]KLODEnet di Stefano Surricchio[/eluser]
Thanks Smilie for your help. So I'll have a look to this class. Thanks again.


Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2020 MyBB Group.