roverks Posted December 29, 2006 Share Posted December 29, 2006 Hello,i am trying to find a way in which a person enters there name and E-mail address, and then an E-mail gets sent to that same E-mail that was entered, so in other words a person enters there E-mail address and an E-mail gets sent to them. The website that i am trying to do this for is http://www.tumiza.com/free.htmThe php code that i have now is <?phpmail("[email protected]", $subject, $message, "From: $subject\nReply-To: $from\nX-Mailer: PHP/" . phpversion());?>My goal is for an auto email to be sent to the E-mail that is entered Link to comment https://forums.phpfreaks.com/topic/32218-php-mailing/ Share on other sites More sharing options...
mattd8752 Posted December 29, 2006 Share Posted December 29, 2006 So, you want to send an email to users who enter their email in a form? Your code is good just have $_POST["fieldnamethattheiremailwasenteredinontheform"] and fill in the subject variable yourself. Link to comment https://forums.phpfreaks.com/topic/32218-php-mailing/#findComment-149537 Share on other sites More sharing options...
roverks Posted December 29, 2006 Author Share Posted December 29, 2006 Thanks for the quick reply,Ya, all i want to do is once the person enters there e-mail address, an e-mail will be sent to them with a password so that they will be able to go to the next page which requires a passwordsorry i am really bad in php, i don't understand completely, can you please explain a little more.sorry for wasting your time. Link to comment https://forums.phpfreaks.com/topic/32218-php-mailing/#findComment-149543 Share on other sites More sharing options...
roverks Posted December 30, 2006 Author Share Posted December 30, 2006 Will adding $_POST, send a E-mail the E-mail address that was entered in the form, and how do i enter the message that i want sent.Also where do i put the $_post.Thanks for your timesorry for the dumb questions Link to comment https://forums.phpfreaks.com/topic/32218-php-mailing/#findComment-149698 Share on other sites More sharing options...
roverks Posted December 31, 2006 Author Share Posted December 31, 2006 I have one more question, Why is it that when an e-mail gets sent to me from my website, auto reply does not work.In other word if some one send me a E-mail, auto reply, which i have set up on Gmail account, sends an auto reply to the sender, but if that e-mail is from the website, the auto reply does not send an auto E-mail. Link to comment https://forums.phpfreaks.com/topic/32218-php-mailing/#findComment-150555 Share on other sites More sharing options...
dcro2 Posted December 31, 2006 Share Posted December 31, 2006 Are the From and Reply-To addresses showing up on Gmail? Link to comment https://forums.phpfreaks.com/topic/32218-php-mailing/#findComment-150557 Share on other sites More sharing options...
roverks Posted January 1, 2007 Author Share Posted January 1, 2007 yup, and when i press reply and send an E-mail it works, just like any other E-mail.But if i turn auto-reply on it does not send an E-mail. Link to comment https://forums.phpfreaks.com/topic/32218-php-mailing/#findComment-150715 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.