FRIHOST FORUMS SEARCH FAQ TOS BLOGS COMPETITIONS
You are invited to Log in or Register a free Frihost Account!


automatic mail





tazone
how do i get php to send an automatic mail

and is there a way to check if a email address truly exists before sending the mail?
jmraker
Yes, just call the mail function
http://us.php.net/manual/en/function.mail.php

To validate the email address I use the function in
http://www.linuxjournal.com/article/9585
which can validate the domain name in the email address

To verify the whole email address I'm sure it has to ask their mail server which is probably a bit difficult

The easier way is during registration send them an email with a special link with a random code that fully enables their account like

Web page:
Instructions to finish your registration has been emailed to you, please check your email to continue. The email could take up to 5 minutes for delivery.

Email:
Click here (or paste the link below in a web browser) to finish your registration.
http://domain.com/register.php?finish=abc123def123

If they never use the link they probably entered a bad email address.

It wouldn't know if their email address is deleted, unless there was some kind of bounce message handler that can parse the different variety of bounce messages. Their email server can email back an email with some info if there's some problem delivering the email.
Related topics
Australian state to ban workplace e-mail spying
Why use Gmail?
Yahoo mail is bester
Hotmail accounts at risk
AIM Mail
Web e-mail !
Mail forwarders
Email Help
PHP Mail Function
Where is the Mail cgi located?
Which free e-mail service do you prefer?
[OK] How to force the filling of a email form field ?
You're a spammer.
Automatic Copies of Reports to Mail Boxes?
Reply to topic    Frihost Forum Index -> Scripting -> Php and MySQL

FRIHOST HOME | FAQ | TOS | ABOUT US | CONTACT US | SITE MAP
© 2005-2011 Frihost, forums powered by phpBB.