How to use mail() without register_globals?

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
WeezelDS
Forum Newbie
Posts: 12
Joined: Mon Feb 28, 2005 10:22 pm

How to use mail() without register_globals?

Post by WeezelDS »

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
User avatar
requinix
Spammer :|
Posts: 6617
Joined: Wed Oct 15, 2008 2:35 am
Location: WA, USA

Re: How to use mail() without register_globals?

Post by requinix »

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).
Post Reply