This is a discussion on mail() - fifth parameter in SAFE MODE within the PHP Language forums, part of the PHP Programming Forums category; Hi. I want to send mail with the function mail(). I am on a shared server in SAFE MODE. When ...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
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. |
|
|||
|
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 |