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? Quote Link to comment Share on other sites More sharing options...
kenrbnsn Posted January 10, 2007 Share Posted January 10, 2007 Remove the single quotes.Ken Quote Link to comment 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. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.