pakenney38 Posted January 10, 2007 Share Posted January 10, 2007 Here's what I want to do:1. Send a message using mail()2. in the body of the message I want HTML and <pre> text3. in the <pre> text I want to output the value of a variable from PHP.right now, I try something like[code]$message .= '<pre>$var</pre>';[/code]and I get "$var" sent to me in an email. How do I get the value of $var instead? Link to comment https://forums.phpfreaks.com/topic/33660-mail-pre-value-no/ Share on other sites More sharing options...
kenrbnsn Posted January 10, 2007 Share Posted January 10, 2007 Remove the single quotes.Ken Link to comment https://forums.phpfreaks.com/topic/33660-mail-pre-value-no/#findComment-157742 Share on other sites More sharing options...
pakenney38 Posted January 11, 2007 Author Share Posted January 11, 2007 arg. I can't believe I didn't think of that. Link to comment https://forums.phpfreaks.com/topic/33660-mail-pre-value-no/#findComment-158325 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.