westman Posted December 20, 2017 Share Posted December 20, 2017 hi all, This is my code. $to = $security_check_email; $from = "system@mysite.com"; $subject = "Verify email"; $message = '<html> <body bgcolor="#FFFFFF"> Dear Member, <br /><br /> Hello <br /><br /> </body> </html>'; $message = wordwrap($message,70); $headers = "From: $from\r\n"; $headers .= "Content-type: text/html\r\n"; mail($to, $subject, $message, $headers); It works and it sends, so whats the problem? The problem is in the attached photo. The email says it is from "system". How do I change that to my site name? Link to comment Share on other sites More sharing options...
Ingolme Posted December 20, 2017 Share Posted December 20, 2017 If I'm remembering correctly, setting the from header to "John Smith <system@mysite.com>" it should display that name instead of "system". 1 Link to comment Share on other sites More sharing options...
westman Posted December 20, 2017 Author Share Posted December 20, 2017 works like a charm. Thank you so much Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now