mail sent with php's mail() has blank From field

Posted by Nikkeloodeni on Stack Overflow See other posts from Stack Overflow or by Nikkeloodeni
Published on 2010-04-08T06:49:59Z Indexed on 2010/04/08 6:53 UTC
Read the original article Hit count: 338

Filed under:
|
|

Hi,

I'm sending email with PHP's mail function. It works just as it should except all email clients show blank From-field. Here's how i'm using the function:

mail( '[email protected]', "Example subject", $msg, 
       implode( "\r\n", array( Content-Type: text/html; charset=UTF-8', 'From: [email protected]') ) );

As i said everything works fine except From field is all blank when the message arrives. Any ideas why this is happening?

© Stack Overflow or respective owner

Related posts about php

Related posts about mail