How to use mail() without register_globals?
Posted: Mon Jun 29, 2009 2:36 pm
Hello,
I'm simply trying to use mail() on a fresh lamp server provided by a host without using register_globals as it will be deprecated in php6 and is a mild security concern. I have the mail function returning a true when trying to send mail but it doesn't actually send it. How do I make mail() work without register_globals being on? I would rather not install pear or use a special smtp account just to send a few automated emails. I'm guessing there is a global variable that mail() needs. I checked my php.ini and the sendmail path is set to /usr/sbin/sendmail -t -i. I dunno wut the "-t -i" means since sendmail has no man entry. Actually, I turned on register_globals, restarted apache and the mail is still not getting sent :\ Any help would be greatly appreciated.
Thanks
I'm simply trying to use mail() on a fresh lamp server provided by a host without using register_globals as it will be deprecated in php6 and is a mild security concern. I have the mail function returning a true when trying to send mail but it doesn't actually send it. How do I make mail() work without register_globals being on? I would rather not install pear or use a special smtp account just to send a few automated emails. I'm guessing there is a global variable that mail() needs. I checked my php.ini and the sendmail path is set to /usr/sbin/sendmail -t -i. I dunno wut the "-t -i" means since sendmail has no man entry. Actually, I turned on register_globals, restarted apache and the mail is still not getting sent :\ Any help would be greatly appreciated.
Thanks