monkeybidz Posted February 5, 2011 Share Posted February 5, 2011 I currently use this to send mail: $message = "$quote_num<BR> PU: $city1, $state1. $zip1<BR> DL: $city2, $state2. $zip2<BR> $miles Miles<BR> Qty: $quantity $freight_type<BR> Lifgate: $liftgate<BR> Weight: $weight<BR> $description<BR> Quoted Price: $total_price"; The mail goes through fine, but it shows the <BR> in the meassage. Any help is appreciated! Quote Link to comment Share on other sites More sharing options...
Pikachu2000 Posted February 5, 2011 Share Posted February 5, 2011 The message is being sent as plain text, and <br> has no meaning in plain text. Quote Link to comment Share on other sites More sharing options...
monkeybidz Posted February 5, 2011 Author Share Posted February 5, 2011 So I would need headers if so how? Or can you point me to an example. Quote Link to comment Share on other sites More sharing options...
Pikachu2000 Posted February 5, 2011 Share Posted February 5, 2011 Scroll down to example #4 and have a look at it: mail Quote Link to comment Share on other sites More sharing options...
monkeybidz Posted February 5, 2011 Author Share Posted February 5, 2011 I tried that one and all vars just come up as $nameofvar. Do i need to ."$nameofvar". or something? Quote Link to comment Share on other sites More sharing options...
Pikachu2000 Posted February 5, 2011 Share Posted February 5, 2011 Variables in a single quoted string will not be interpolated, so yes you either need to concatenate them into the string, or use double quotes around the string. 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.