Re: Mail fifth parameter
| From: | Jason Davidson | Date: | Sun, 07 Mar 2004 05:48:06 +0000 |
| Subject: | Re: Mail fifth parameter | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-179683@lists.php.net to get a copy of this message | ||
\r\n is good :)
J
Raditha Dissanayake <jabber@raditha.com> wrote:
>
> It's an often overlooked fact that you can pass additional headers in
> the fourth parameter. I do belive you should use \n and not \r\n
> then your code will look like
>
> mail("user@example.com", "object", $message,
> "From: webmaster@domain.com\n ".
> "Reply-To:webmaster@domain.com\n".
> "Return-Path: webmaster@$domain.com\n);
>
>
>
>
>
>
> Enrico Comini wrote:
>
> > I have to send a email to a server where is very important the
> >"Return-Path" to match the identity.
> >
> >If I use mail("user@example.com", "object", $message,"From:
> >webmaster@domain.com\r\n".
> >"Reply-To:webmaster@domain.com\r\n"
> >."Return-Path: webmaster@$domain.com\r\n);
> >
> >I see in the received message that return-path Is not that I want.
> >
> >I try to use the fifth parameter ( "-fwebmaster@domain.com) but I am in
> >safe mode then I see the warning : the fifth parameter is disabled in safe
> >mode.
> >There is a workaround for this problem ? safe_mode = on is impossible for
> >this server !
> >
> >
> >
>
>
> --
> Raditha Dissanayake.
> -----------------------------------------------------------------------
> http://www.radinks.net/ftp/applet/
> An applet that breaks all the rules. Reads, Writes and Deletes files on
> your hard disk. Uploads what's left to a third party server.
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>