pioneerx01 Posted October 16, 2009 Share Posted October 16, 2009 Hello, I have a simple registration form coded in PHP. In that registration user is prompted to enter an email address. Lets say that field is called "email1" I need a code that will send an email to the address that was entered by user, as well as mine, informing them that they have registered successfully and bunch of other info. Thanks Link to comment https://forums.phpfreaks.com/topic/177937-automatic-email-response-upon-submiting-a-form/ Share on other sites More sharing options...
cags Posted October 16, 2009 Share Posted October 16, 2009 $headers = "From: [email protected]\r\n"; $headers .= "BCC: [email protected]\r\n"; mail($_POST['email1'], "Subject", "Message", $headers); Link to comment https://forums.phpfreaks.com/topic/177937-automatic-email-response-upon-submiting-a-form/#findComment-938162 Share on other sites More sharing options...
chronister Posted October 16, 2009 Share Posted October 16, 2009 I really like using PHPmailer.... it is a very easy to use php class. It handles everything you would need in an automated email. Attachments, bcc html and text versions. everything.... check it out. It takes the work out of sending automated email. Link to comment https://forums.phpfreaks.com/topic/177937-automatic-email-response-upon-submiting-a-form/#findComment-938324 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.