Jump to content

Email verification script


ligor

Recommended Posts

I found a PHP script that verifies an email address using a syntax check, a DNS record check, and an SMTP probe. I need all three of these features to work, but I have only been able to get the first two checks to work correctly. I have uploaded the script here:

 

http://pastebin.com/m3e5300b8

 

I believe that my problem is coming from a couple of parameters that I'm unsure of. The two parameters I need to use for the SMTP probe to work correctly are $probe_address and $helo_address. I tried the address which is used in the value of the SMTP configuration option in my server's php.ini file to get the value for $helo_address, and I tried building an email form and sending an email to my gmail account and grabbing the listed email address from the email I sent to use as the $probe_address. Is that correct, or is there a better method?

 

Also, the original documentation for the function can be found at http://www.tienhuis.nl/files/email_verify_source.php

 

All help is very much appreciated,

Ligor

Link to comment
https://forums.phpfreaks.com/topic/111942-email-verification-script/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.