Connecting Tech Pros Worldwide Help | Site Map

mail() - fifth parameter in SAFE MODE

Giobibo
Guest
 
Posts: n/a
#1: Jul 17 '05
Hi.

I want to send mail with the function mail().
I am on a shared server in SAFE MODE.

When I send a mail I get the message:
"SAFE MODE Restriction in effect.
The fifth parameter is disabled in SAFE MODE"

But I need the fifth parameter, because it is the only way to set my
own Return-Path (instead of nobody@server....)

I tried this too:

echo ini_set("safe_mode",0);
mail($admin, $subject, $message, $head, "-f$email"))
echo ini_set("safe_mode",1);

but it does't work.

Is there any suggestion?

Thank you for replying.
Kelly Thompson
Guest
 
Posts: n/a
#2: Jul 17 '05

re: mail() - fifth parameter in SAFE MODE


On Tue, 27 Apr 2004 19:43:51 +0200
Giobibo <giobibo@yahoo.com> wrote:
[color=blue]
> Hi.
>
> I want to send mail with the function mail().
> I am on a shared server in SAFE MODE.
>
> When I send a mail I get the message:
> "SAFE MODE Restriction in effect.
> The fifth parameter is disabled in SAFE MODE"
>
> But I need the fifth parameter, because it is the only way to set my
> own Return-Path (instead of nobody@server....)
>
> I tried this too:
>
> echo ini_set("safe_mode",0);
> mail($admin, $subject, $message, $head, "-f$email"))
> echo ini_set("safe_mode",1);
>
> but it does't work.[/color]

If you could simply ini_set() anything, then safe mode would be a
joke, right? And in safe mode you will not be able to use the flags
argument of mail(). Read php.net/mail
Closed Thread