shortysbest Posted July 9, 2010 Share Posted July 9, 2010 When i get emails from my website "From" says webmaster@mysite.com, How can i change it to say like just, mysite I have mail($to,$subject,$message,$headers,"Squiblo"); Quote Link to comment https://forums.phpfreaks.com/topic/207231-change-from-text-with-php-mail-function/ Share on other sites More sharing options...
bh Posted July 9, 2010 Share Posted July 9, 2010 http://php.net/manual/en/function.mail.php <?php $to = 'nobody@example.com'; $subject = 'the subject'; $message = 'hello'; $headers = 'From: webmaster@example.com' . "\r\n" . 'Reply-To: webmaster@example.com' . "\r\n" . 'X-Mailer: PHP/' . phpversion(); mail($to, $subject, $message, $headers); ?> Quote Link to comment https://forums.phpfreaks.com/topic/207231-change-from-text-with-php-mail-function/#findComment-1083470 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.