email - PHP mail from address header -


i'm using php mail function send messages web app. i've created table holds e-mail addresses , messages send. script fetches number of messages , sends them.

$headers  = 'mime-version: 1.0' . "\r\n";             $headers .= 'content-type: text/html; charset=' . $charset . "\r\n";             $headers .= 'to: ' . $destname . ' <' . $destaddress . '>' . "\r\n";             $headers .= 'from:' . $fromname . ' <' . $fromaddress . '>' . "\r\n";             $headers .= "reply-to: ". $fromname . ' <' . $fromaddress . '>' . "\r\n";              mail($destaddress, $subject, $msgbody, $headers); 

my problem that, setting , reply-to header, address shown on list of received messages strange (not 1 i've sent). see picture below,

enter image description here

but when open message, seems ok, ie sender 1 i've configured.

can me?

if there nothing shows "from" , "reply-to" field different address mail sent, able sent mail coming instance obama@whitehouse.org if want email of choice shown, should use smtp, log in mailserver correct account, , sent mail. cause mail verified , trusted. http://www.9lessons.info/2009/10/send-mail-using-smtp-and-php.html


Comments

Popular posts from this blog

linux - Does gcc have any options to add version info in ELF binary file? -

android - send complex objects as post php java -

charts - What graph/dashboard product is facebook using in Dashboard: PUE & WUE -