• Plesk Uservoice will be deprecated by October. Moving forward, all product feature requests and improvement suggestions will be managed through our new platform Plesk Productboard.
    To continue sharing your ideas and feedback, please visit features.plesk.com

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