« PHP 5.2.5 GOAL! »

Stupid windoze mail() function

Posted by Simon Welsh | 12 November 2007 | Comments (2)

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"  


Share on FaceBook

Trackbacks

None
Trackback URL: http://simon.geek.nz/Trackbacks/add/948

Post your comment

Sign in with Twitter

Comments

  • They want be to fix it, eh?

    Posted by Caitlin, 13/08/2012 10:51pm (9 months ago)

  • 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