ligor Posted June 26, 2008 Share Posted June 26, 2008 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 Quote Link to comment Share on other sites More sharing options...
ligor Posted June 26, 2008 Author Share Posted June 26, 2008 I couldn't find the edit button, so I'm sorry for the double post :S I've determined that my problem actually lies in the fsockopen function timing out. Does anyone have any suggestions to fix that problem? Quote Link to comment Share on other sites More sharing options...
br0ken Posted June 29, 2008 Share Posted June 29, 2008 Either increase the timeout setting of fsockopen or ensure that the address you're trying to connect to actually exists. You could have specified an incorrect address some where. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.