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
How to use mail() without register_globals?
Moderator: General Moderators
Re: How to use mail() without register_globals?
mail() and register_globals have absolutely nothing in common with each other.
Have you checked your spam box/filters? Has the server received any bounce messages? Is the mail still sitting in sendmail's queue (try running `mailq` as root).
Have you checked your spam box/filters? Has the server received any bounce messages? Is the mail still sitting in sendmail's queue (try running `mailq` as root).