CodeIgniter Forums
Sending Email (php5 vs php4) - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forum-20.html)
+--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forum-23.html)
+--- Thread: Sending Email (php5 vs php4) (/thread-28841.html)



Sending Email (php5 vs php4) - El Forum - 03-23-2010

[eluser]Ngulo[/eluser]
hi all

i was wondering why if my hosting is set to PHP5

when sending email,i receive this error:
Code:
Severity: Warning

Message: mail() [function.mail]: SAFE MODE Restriction in effect. The fifth parameter is disabled in SAFE MODE

Filename: libraries/Email.php

Line Number: 1519

while if i set the hosting on php4

the script work perfectly :O

any idea?

ps:the code is a very simple code nothing complicated


Sending Email (php5 vs php4) - El Forum - 03-23-2010

[eluser]danmontgomery[/eluser]
Safe mode is enabled.

http://www.php.net/manual/en/features.safe-mode.functions.php

Quote:mail() In safe mode, the fifth parameter is disabled. (note: only affected since PHP 4.2.3)



Sending Email (php5 vs php4) - El Forum - 03-23-2010

[eluser]Ngulo[/eluser]
hi noctrum,and so i need to use php4 with codeigniter? :O

sorry i don't understand what i need to do to make work emails on PHP5 Sad


Sending Email (php5 vs php4) - El Forum - 03-23-2010

[eluser]mikelbring[/eluser]
No you need safe mode turned off. If your on a shared host, your host probably has to do it.


Sending Email (php5 vs php4) - El Forum - 03-23-2010

[eluser]Ngulo[/eluser]
so it's a problem by the hoster !! thanks Wink