| 
 Posted by Nicholas Sherlock on 06/18/28 11:32 
Rainer Wiener wrote: 
> Hi, 
>  
> I got this line: 
>  
> $from = 'From: Birthday Reminder <birthday@example.com>' . "\r\n"; 
>  
> but when I do an echo I get only this: 
>  
> From: Birthday Reminder 
>  
> what is wrong? 
 
Look at the HTML source. It *is* printing what you want. The problem is  
that '<' and '>' are interpreted as being an HTML tag. 
 
Use < for < and > for >, or just use the HTML entities function: 
 
http://www.php.net/manual/en/function.htmlentities.php 
 
Cheers, 
Nicholas Sherlock
 
  
Navigation:
[Reply to this message] 
 |