Page 1 of 1
Submit query
Posted: Mon Aug 13, 2007 4:52 am
by sandy1028
Hi,
I have a submit query page. I receive mails from invalid email id. How to confirm whether the users email id is valid.
Receive the mails from users only when the email id is valid or not receive the mails from invalid email id...
How can I check the email is valid or not before receiving the mail
Posted: Mon Aug 13, 2007 5:06 am
by volka
You can send back an eMail with an activation code, like many internet boards do before activating the account.
Posted: Mon Aug 13, 2007 5:13 am
by sandy1028
Can I confirm the email address of the users without sending the activation account... Is there any way to validate the address without sending mail back to the users address.
Posted: Mon Aug 13, 2007 5:41 am
by volka
Not to my knowledge.
You can test the address against the rules in rfc822. You can also test the mx record,
http://de2.php.net/getmxrr. You can even ask the smtp server if it kindly informs you about the existence of an user account. But even if the first two tests succeed and if the smtp is willing to give you the information it doesn't tell you whether the address belongs to the user sending the request.
Posted: Mon Aug 13, 2007 6:11 pm
by califdon
Maybe I should hold my tongue, but I hope a lot of people read this:
FOLKS, PLEASE try to make your Subject lines bear some resemblance to what your post is about!
This Subject showed "Submit Query" -- the person is asking a question about validating email addresses!!!!!!!!!!!!!
[Sorry, but I feel better now.]