• If you are still using CentOS 7.9, it's time to convert to Alma 8 with the free centos2alma tool by Plesk or Plesk Migrator. Please let us know your experiences or concerns in this thread:
    CentOS2Alma discussion

Mail send via PHP is sent as '[email protected]' - How to change 'anonymous' ??

Good Question. Thats the way it works for me too. Also, a lot of mail sent via PHP from my plesk machine gets blocked at my mail server because it cliams to be infected with a virus. Here is the message in th avirus log : File(s) are INFECTED [[Outlook 'CR' Vulnerability]: 0] )

I'll be watching this thread for a solution.I don't often see things solved here though. A lot of dead threads.
 
<?php

$stremail = "[email protected]";
$asunto = "Newsletter";
$sbody = "message of the email";

$headers = "MIME-Version: 1.0\n";
$headers .= "Content-type: text/html; charset=iso-8859-1\n";
$headers .= "From:Your name company<[email protected]>\n";
$headers .= "Reply-To:Webmaster<[email protected]>\n";
$headers .= "X-Priority: 1\n";
$headers .= "X-MSmail-Priority: High\n";
$headers .= "X-mailer: DAUMED\n";

mail($stremail, $asunto, $sbody, $headers, "[email protected]");

?>
 
Back
Top