Scared of the Peacock Revolution since 2006
Blog » Stupid windoze mail() function
Someone posted a bug report about the mail() function needing to have a From: header.
You can set the From header system wide using php.ini, php_admin_* or ini_set(), or can specify it when calling the function.
I do neither. As on a non-windoze system, mail() calls the system's mail function, which sets the From: header if it isn't given. As windoze isn't good enough to have its own mail function, PHP must send the mail itself. Therefore in the unlikely chance that some on windoze hasn't set the From: header anywhere, they get given an error message.
And they want be to fix it. And it's all their fault. Maybe I should just reply saying PEBKAC...
Now playing: MDA by KJ-52 from It's Pronounced "Five Two"
They want be to fix it, eh?
please remove this comment
Posted by iFish, 20/11/2007 11:30am (6 years ago)
RSS feed for comments on this page | RSS feed for all comments
So Ahab slept with his fathers; and Ahaziah his son reigned in his stead.
Powered by SilverStripe. Hosted by RimuHosting.
Unlease otherwise stated, all content is licenced under a Creative Commons Attribution-ShareAlike Licence.