PHP-General - Email verification scripts - connection being refused
Discuss Email verification scripts - connection being refused in the PHP Development forum on Dev Shed. Email verification scripts - connection being refused PHP Development forum discussing coding practices, tips on PHP, and other PHP-related topics. PHP is an open source scripting language that has taken the web development industry by storm.
Posts: 12,711
Time spent in forums: 5 Months 1 Week 4 Days 6 h 48 m 5 sec
Reputation Power: 8969
mx2.hotmail.com is an MX record for both @hotmail.com and @msn.com so that looks right.
Some mail servers will block connections or emails from blacklisted (eg, Spamhaus) sources. Depending how paranoid your verification needs to be, I might simply check if there is at least one MX record that resolves to an IP address.
Posts: 12,711
Time spent in forums: 5 Months 1 Week 4 Days 6 h 48 m 5 sec
Reputation Power: 8969
A HELO? You mean trying a RCPT TO?
That's how you would do it, but if you can't connect then all the verification scripts in the world won't help. Can you connect to mx2.hotmail.com yourself from that machine?
Posts: 2,236
Time spent in forums: 2 Weeks 1 Day 11 h 48 sec
Reputation Power: 201
ok i have tried again and this is the response I got from hotmail:
220 BAY0-MC4-F26.Bay0.hotmail.com Sending unsolicited commercial or bulk e-mail to Microsoft's computer network is prohibited. Other restrictions are found at http://privacy.microsoft.com/en-us/anti-spam.mspx. Wed, 9 Jan 2013 15:09:03 -0800
Does this mean I won't be able to get info from hotmail?
Posts: 12,711
Time spent in forums: 5 Months 1 Week 4 Days 6 h 48 m 5 sec
Reputation Power: 8969
No, getting that announcement (which is what it is) is good. Are you saying the script works now, or at least isn't generating the "connection refused" errors?
Posts: 163
Time spent in forums: 1 Day 13 h 18 m 54 sec
Reputation Power: 17
Your webhosts IP may be banned from msn servers due to other users using the host to send spam.
Have you tried using the php mail extension and sending an email validation link? that way you know that it is valid and belongs to the user
Quote:
Originally Posted by requinix
No, getting that announcement (which is what it is) is good. Are you saying the script works now, or at least isn't generating the "connection refused" errors?
Posts: 2,236
Time spent in forums: 2 Weeks 1 Day 11 h 48 sec
Reputation Power: 201
Well i tried that script from my installation on Linux rather than through my web hosting company and that is when it appeared to work.
when I tried to check an email address hosted by another company, I actually recieved the response saying whether the email was valid or not. but when I try the hotmail one, it seems that this message is a generic one they respond with without actually telling us whether the email in question is valid or not.
Posts: 2,236
Time spent in forums: 2 Weeks 1 Day 11 h 48 sec
Reputation Power: 201
well I was asked by my manager whether when user sign up to our services//competitions, if there is a way we could check if the emails entered actually exist. for example: abc@hotmail.com may be a valid format but not necessarily exist.
But you know what, you have posed a valid question, if we dont check for the ownership then anyone can put an email address for another person..
Posts: 163
Time spent in forums: 1 Day 13 h 18 m 54 sec
Reputation Power: 17
Yes and you will be in violation of many laws and TOS agreements with email providers resulting in your domain, associated ip's and email addresses being black listed.
You should create a truly random id, store the id with their name and email address, email the id to the user within a URL link requesting both the userid and unique id via get method.
This will bypass the issues of mail servers not providing results to your whois searches of email addresses, and provide more useful data.
Quote:
Originally Posted by paulh1983
well I was asked by my manager whether when user sign up to our services//competitions, if there is a way we could check if the emails entered actually exist. for example: abc@hotmail.com may be a valid format but not necessarily exist.
But you know what, you have posed a valid question, if we dont check for the ownership then anyone can put an email address for another person..