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"
So Ahab slept with his fathers; and Ahaziah his son reigned in his stead.