You are here: Re: [PHP] mail return-path problem « PHP « IT news, forums, messages
Re: [PHP] mail return-path problem

Posted by "Richard Lynch" on 09/29/16 11:31

On Tue, November 8, 2005 9:47 am, Eric Butera wrote:
> I was just curious if there was a way to set the return path of an
> email
> dynamically. I've looked around and all I could find was a Zend
> tutorial
> running sendmail from the command line, which I don't want to do. :)
>
> I tried setting "Return-Path:" in the mail() headers, but that didn't
> seem
> to make a difference. If anybody knows anything about this and could
> point
> me in the right direction, I'd appreciate it.

Works for me...

$from = 'digital.tarsier@gmail.com';
$headers = "From: $from\r\n";
$headers .= "Reply-to: $from\r\n";
$headers .= "Return-Path: $from\r\n";
mail($from, 'Test', "This is a test.\r\n", $headers);

Note however, that your configuration of sendmail (or whatever is in
php.ini) could probably be configured to not accept a Return-Path
header...

CAN you run sendmail from the command line, as the PHP User, and get
Return-Path: to work?

If not, then PHP can't do it either.

That may have been the whole purpose of the tutorial...

Or, perhaps, the point was that for a static Return-Path: you could
set it in php.ini just as you would from the command line.

--
Like Music?
http://l-i-e.com/artists.htm

 

Navigation:

[Reply to this 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

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