Jump to content

edit email script


westman

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

Link to comment
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
×
×
  • Create New...