Reply to Problem Return Path

Your name:

Reply:


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;

(.....)
---------------

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация