473,320 Members | 1,794 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

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.
Jul 17 '05 #1
1 5124
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
by: NotGiven | last post by:
WHen I use php's mail() function, the recipient sees the hosting userID - NOT GOOD!. Are there any settings I can change or code it a different way? Thanks.
4
by: Data Goob | last post by:
This one has me stumped. How did SuSE disable the mail() function in their RPM'd version of PHP? ( This is their install-version of PHP with RPMs not what you download from PHP.net ) I have...
6
by: Mike the Canadian | last post by:
I am having a very strange problem sending email with php. I have two domains. I can send an email to one domain using php but not the other. If I put both email addresses in the mail command only...
3
by: ralphNOSPAM | last post by:
I'm trying to send a Txt Msg to my Verizon cell phone using PHP Mail(). I use a mail gateway that verizon has provided. It works OK - but - the From string I see on my cell phone when I get the txt...
8
by: baustin75 | last post by:
Posted: Mon Oct 03, 2005 1:41 pm Post subject: cannot mail() in ie only when debugging in php designer 2005 -------------------------------------------------------------------------------- ...
4
by: cover | last post by:
In my PHP 5.0 at home, I'm using the following code to successfully write to a database and also send out an email. For some reason, when I take this code to work, it still writes to the database...
13
Nert
by: Nert | last post by:
hello every one, i need help.. how can i use the mail() funtion in php? when ever i execute the mail function i continuesly receive this error message: what do i need to do in order for me...
3
chunk1978
by: chunk1978 | last post by:
i keep reading "simply do this with PHPs built-in Mail() function"... wtfever! i've been trying to get this working for a week, and it's still a big mystery... my PHP script: <?php $to =...
0
by: Pi0tReK | last post by:
Hello, My PHP 4.3.9 works in safe mode. can I force change header "return-path:" using mail function? I try, but it doesn't works. I change header "From: " successfully, but not "Return-path"...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.