mail() - fifth parameter in SAFE MODE

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 ...


Go Back   Usenet Forums > PHP Programming Forums > PHP Language

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 04-27-2004
Giobibo
 
Posts: n/a
Default mail() - fifth parameter in SAFE MODE

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.
Reply With Quote
  #2 (permalink)  
Old 04-30-2004
Kelly Thompson
 
Posts: n/a
Default Re: mail() - fifth parameter in SAFE MODE

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
Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT +1. The time now is 08:27 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0