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. "; Quote Link to comment Share on other sites More sharing options...
bag Posted March 13, 2010 Share Posted March 13, 2010 Try $to = 'name@whatever.com'; $subject = 'EMail from Contact form'; $message="Hi there\r\n"; $headers = "From: Fromname@something.com\r\nReply-To: Replyadd@something.com\r\n"; $mail_sent = @mail( $to, $subject, $message, $headers ); 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.