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


PHP/MySql Sending e-mail subcription confirmation to webmast





mringuk
I've successfully set up a PHP/MySql Subcribe/Unsubcribe setup. I'd like to send the Webmaster an e-mail when the new subscriber is sent one. Presently my script is

mail($_REQUEST['email'], 'Subscription', 'You have just subscribed to etc.

How do I add a default e-mail address also?


Many thanks

Mike
rvec
just add that line again and instead of the first parameter ($_REQUEST['email']) add the mail address of the webmaster between '' (for example 'rvec@example.com')
mringuk
I've changed it to:

mail($_REQUEST['email'], 'Subscription', 'You have just subscribed to etc ', 'From: webmaster@domain.com');

mail('webmaster@domain.com', 'New Subscriber', ' .', 'From: webmaster@domain.com');

but that doen't appear to work. Any other advice?


Mike
mringuk
I've now sorted it thanks rvec
Related topics
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.