Page 1 of 1
mail() function
Posted: Fri Jan 07, 2005 7:19 pm
by shiznatix
is there a way to use the mail() function when safe mode is enabled? if not is there a alternative to mail() to send emails automatically?
Posted: Fri Jan 07, 2005 7:28 pm
by feyd
I haven't heard of anything that says you can't use [php_man]mail()[/php_man] in safe_mode.
Posted: Fri Jan 07, 2005 7:37 pm
by shiznatix
Warning: mail(): SAFE MODE Restriction in effect. The fifth parameter is disabled in SAFE MODE. in /home/wesmok2/public_html/shizRadio/register.php on line 33

sorry i didnt notice the "fifth parameter is disabled" message thats my stupidity sorry.
Posted: Fri Jan 07, 2005 7:47 pm
by feyd
chalk it up to learning something new..

Posted: Sat Jan 08, 2005 1:30 am
by AGISB
YOu might consider using phpmailer. With this you avoid getting you mail moved to someones spam folder as well.
Posted: Sat Jan 08, 2005 8:53 am
by d3ad1ysp0rk
That really had nothing to do with the problem at hand.. I'm not sure whether that was an advertisement or just a personal comment, but as long as you send emails with the correct headers and your title doesnt include "penis", "grow", "inches", "millionaire", etc.. then it shouldn't end up in someone's spam folder.
Posted: Sat Jan 08, 2005 2:16 pm
by shiznatix
lol. ya the mail function will suit me just fine and if my mail does end up in spam folders then ill just read the topic were they discuesed that issue. thanks
Posted: Sun Jan 09, 2005 1:32 pm
by AGISB
LiLpunkSkateR wrote:That really had nothing to do with the problem at hand.. I'm not sure whether that was an advertisement or just a personal comment, but as long as you send emails with the correct headers and your title doesnt include "penis", "grow", "inches", "millionaire", etc.. then it shouldn't end up in someone's spam folder.
This is not an advertisment for a FREE function and your statement is kind of correct but mail() does however not send the correct header unless you set the last parameter which will yield a warning message in the mail header. This last parameter might indeed be the problem at hand.
mail() -> sendmail which replaces the 'Return-Path:' and it doesn't match the from and replyto headers any longer. This will indeed leads to many mail providers to move the message to spam. This can only be avoided by using a function that can email without using sendmail.