bilis_money Posted August 6, 2006 Share Posted August 6, 2006 hi, guysi would like to send email message into new registered user,Is this snippet codes correct specially the Header?[code]//send message to new user.$recepient = $email_new;$subject = "Please activate your membership now!";$contents = "Hi, $user_new PLease activate now"; $headers = "Reply-to: $email_new";mail($recepient, $subject, $contents, "From: Website Admin. :)", $headers);[/code]i'm inserting $email_new inside a $headers because i want it to be dynamic,I want to insert the email address of the new user into that, is thatcorrect insertion? i mean the codes?and also i notice that when i press the send i don't recieve the messagefrom this codes, please help me i'm really stumped.Thank you very much in advance. Link to comment https://forums.phpfreaks.com/topic/16687-header-mail-question-is-this-correct/ Share on other sites More sharing options...
Chetan Posted August 6, 2006 Share Posted August 6, 2006 mail($recepient, $subject, $contents, "From: Website Admin. :)", $headers);mail($recepient, $subject, $contents, "From: Website Admin. :) <[email protected]>".$headers);Thats wat it shud be Link to comment https://forums.phpfreaks.com/topic/16687-header-mail-question-is-this-correct/#findComment-70060 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.