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. Quote Link to comment 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. :) <admin@site.com>".$headers);Thats wat it shud be Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.