afam4eva Posted March 11, 2010 Share Posted March 11, 2010 Pls here's a scrip that i want to customize. $to= "********@gmail.com"; $subject= "Resgistration completed"; $message= " The message will come here. mail($to, $subject, $message); here's my problem : Whenever the end user fills the form it show that the message comes from a server name like "server quality". I want customise it to something like "From : Besthosting.com", How do i do that. "; Link to comment https://forums.phpfreaks.com/topic/194916-how-do-i-customize-email-function/ Share on other sites More sharing options...
bag Posted March 13, 2010 Share Posted March 13, 2010 Try $to = '[email protected]'; $subject = 'EMail from Contact form'; $message="Hi there\r\n"; $headers = "From: [email protected]\r\nReply-To: [email protected]\r\n"; $mail_sent = @mail( $to, $subject, $message, $headers ); Link to comment https://forums.phpfreaks.com/topic/194916-how-do-i-customize-email-function/#findComment-1025716 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.