Submit query

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
sandy1028
Forum Commoner
Posts: 60
Joined: Thu Jul 26, 2007 3:56 am

Submit query

Post 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
User avatar
volka
DevNet Evangelist
Posts: 8391
Joined: Tue May 07, 2002 9:48 am
Location: Berlin, ger

Post by volka »

You can send back an eMail with an activation code, like many internet boards do before activating the account.
sandy1028
Forum Commoner
Posts: 60
Joined: Thu Jul 26, 2007 3:56 am

Post 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.
User avatar
volka
DevNet Evangelist
Posts: 8391
Joined: Tue May 07, 2002 9:48 am
Location: Berlin, ger

Post 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.
User avatar
califdon
Jack of Zircons
Posts: 4484
Joined: Thu Nov 09, 2006 8:30 pm
Location: California, USA

Post 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.]
Post Reply