Page 1 of 1

Help - Simple fix I am sure

Posted: Fri Nov 06, 2009 10:36 am
by daneditty
<?
$headers .= "From:{$membername} <{$memberemail}> \r\n";
?>

THis be the line of code I am struggling with. The less than and greater than signs here seem to comment out the $memberemail variable thus the from email shows as a server email. Any ideas as to what punctuation when added will show for example exactly <myemail@mydomain.com>?

Thanks in advance!

Re: Help - Simple fix I am sure

Posted: Sun Nov 08, 2009 6:05 pm
by McInfo
The spacing might make a difference.

Try

Code: Select all

$headers .= "From: {$membername} <{$memberemail}>\r\n";
Also trim() $membername and $memberemail.

Edit: This post was recovered from search engine cache.