Jump to content
Sign in to follow this  
westman

edit email script

Recommended Posts

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?

 

Capture.PNG

Share this post


Link to post
Share on other sites

If I'm remembering correctly, setting the from header to  "John Smith <system@mysite.com>" it should display that name instead of "system".

  • Like 1

Share this post


Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×