Paul Graham - 2011-02-14 13:49:11
I have been sending mail using the qmail message class.
I recently switched to the smtp class.
i am finding that the return-path email address is not having the first character cut off?
require("email_message.php");
require("smtp.php");
. . . . .
if(defined("PHP_OS")
&& strcmp(substr(PHP_OS,0,3),"WIN"))
$email_message->SetHeader("Return-Path",$error_delivery_address);
If I replce the above line with
$email_message->SetHeader("Return-Path",'x'.$error_delivery_address);
then the return address is correct in the header?