By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
455,053 Members | 1,209 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 455,053 IT Pros & Developers. It's quick & easy.

mail() - fifth parameter in SAFE MODE

P: n/a
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.
Jul 17 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a
On Tue, 27 Apr 2004 19:43:51 +0200
Giobibo <gi*****@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
Jul 17 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.