shortysbest Posted July 9, 2010 Share Posted July 9, 2010 When i get emails from my website "From" says [email protected], How can i change it to say like just, mysite I have mail($to,$subject,$message,$headers,"Squiblo"); 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 = '[email protected]'; $subject = 'the subject'; $message = 'hello'; $headers = 'From: [email protected]' . "\r\n" . 'Reply-To: [email protected]' . "\r\n" . 'X-Mailer: PHP/' . phpversion(); mail($to, $subject, $message, $headers); ?> 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
Archived
This topic is now archived and is closed to further replies.