Home > Archive > PHP Programming > April 2004 > mail() - fifth parameter in SAFE MODE
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
mail() - fifth parameter in SAFE MODE
|
|
| Giobibo 2004-04-27, 3:04 pm |
| 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 2004-04-30, 1:37 am |
| On Tue, 27 Apr 2004 19:43:51 +0200
Giobibo <giobibo@yahoo.com> wrote:
> 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.
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
|
|
|
|
|