|
Posted by Grizzly on 02/01/06 18:15
Hi,
For some reason the Return-Path of the following script is set to the
apach@domain.com address when the mail is delivered. The sendmail on
the server seems to process things fine, since the perl scripts on the
server give the correct output, but the PHP generated mails fail.
I was wondering if anybody had an idea how to configure the PHP (or
another system) so that Return-Path is set to the FROM. We have no idea
where the problem is.
The following script is used for sending the mails, which works fine,
just the return-path is incorrect.
---------------
(.....)
$headers = "BCC: $email_distri\r\n" .
"From: $from\r\n" .
"Return-Path: $from <$from>\n" .
"MIME-Version: 1.0\r\n" .
"Content-Type:multipart/alternative;\n" .
" boundary=\"{$mime_boundary}\"\r\n";
$message = "This is a multi-part message in MIME format.\n\n" .
"--{$mime_boundary}\n" .
"Content-Type: text/plain; charset=\"iso-8859-1\"\n" .
"Content-Transfer-Encoding: 7bit\n\n" .
$mail_text . "\n" .
"--{$mime_boundary}\n" .
"Content-Type: text/html; charset=\"iso-8859-1\"\n" .
"Content-Transfer-Encoding: 7bit\n\n" .
$mail_html;
(.....)
---------------
Navigation:
[Reply to this message]
|