Help - Simple fix I am sure

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
daneditty
Forum Newbie
Posts: 6
Joined: Fri Nov 06, 2009 10:27 am

Help - Simple fix I am sure

Post 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!
User avatar
McInfo
DevNet Resident
Posts: 1532
Joined: Wed Apr 01, 2009 1:31 pm

Re: Help - Simple fix I am sure

Post 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.
Post Reply