I have a site in PHP.In this when I send the invitation to people it takes the from address as mysitename@servername.Instead of this I want o display the Mysitename .How can I do.I have the code shown below.
$headers = 'MIME-Version: 1.0' . "
";
$headers .= 'Content-type: text/html; charset=iso-8859-1' . "
";
$headers .= 'To:'. $value . "
";
$headers .= 'From:Mysitename'."
";
How can I show like in users email's from address is Mysitename?
Thanks in advance?
$headers .= 'From: Mysitename <mysitename.com>' . "
";
Maybe something along the lines of:
$headers .= 'From: Mysitename <owner@mysitename.com>' . "
";
You need 'From' to be proper email address.