How to set the spf or 'sent via' in email header in php -
when receive email (in gmail @ least), see following format @ top: 'john doe johndoe@gmail.com via servername.com' wondering if there way change 'servername.com' after "via" while in doing keeping defined headers in php code below, great:
<?php $to = 'johndoe@gmail.com'; $message = 'blah'; $subject = 'blahblah'; $headers = 'from: test@gmail.com'; mail($to,$subject,$message,$headers); ?>
that's set mta. postfix can tell it's determined myorigin
parameter in main.cf
.
Comments
Post a Comment