SMTP check code in PHP – Download

Posted by php-manual on Jan 26, 2009 in Miscellaneous |

SMTP check code in PHP - Download

Class file in PHP to check if email exists. Uses fsockopen and SMTP commands like HELO, MAIL, RCPT to check validity of emails. The attachment is a PHP class file.

Please remove txt from extension after downloading.

8 Comments

Dan
Mar 17, 2009 at 5:54 pm

cool


 
George Dawson
Jun 8, 2009 at 2:09 am

Is there an updated version of the email validate class? Or some documentation about how the author implemented it?

I have tried a few ways. Right now, passing an array holding the email addys to be tested, and another holding the ‘from email values’ in an array, and my result set is such that the first element and the last element have value (1 in both) and the rest is the list of email addresses as the key, but no value.

It is a great idea, and I really would like to use it.

TIA


 
Nsthinh
Jun 24, 2009 at 9:28 am

I try your code, but it’s error: Fatal error: Cannot re-assign $this in C:\Program Files\xampp\php\pear\Net\DNS\RR.php on line 60.
How fixed it!


 
jim
Sep 3, 2009 at 10:13 pm

Cheers!


 
Direo
Sep 5, 2009 at 6:09 pm

It works great!! Thanks.


 
Jon
Dec 21, 2009 at 3:11 pm

Thanks for writing this. I’ve done this in a terminal for years but having the PHP front-end is very useful. I’ve found the Google public DNS service nameservers useful to use with this script too: http://code.google.com/speed/public-dns/


 
ashwini
May 6, 2010 at 6:43 am

please explain how to implement check mail code


 
yrcreddy
Jun 23, 2010 at 6:54 pm

hi its good but how to know the smtp_server ipadresss can any one tell me with examples of placing
appreciate and thanks in advance…….


 

Reply

Copyright © 2010 PHP, Web and IT stuff All rights reserved. PHP Web development in London.