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
Share on other sites

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?

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.