Guest GoodLiteCandles Posted November 3, 2005 Share Posted November 3, 2005 In the email I wanted to make the headers bold (i.e. "Billing Address", "Shipping Address" etc) But when I put the <b></b> around the words they literally showed up in the email. Are these tags not able to be used? I used them in the order success information a few lines up. Am I able to bold these headers? Any help would be appreciated. Thanks. Quote Link to comment Share on other sites More sharing options...
Guest GoodLiteCandles Posted November 4, 2005 Share Posted November 4, 2005 No one knows? Quote Link to comment Share on other sites More sharing options...
Guest Posted November 4, 2005 Share Posted November 4, 2005 The e-mails are sent out in plain text, not stylized/HTML text. I'm not personally that much of a fan of HTML mail, so I didn't even look at that option. :w00t: Quote Link to comment Share on other sites More sharing options...
Guest estelle Posted November 4, 2005 Share Posted November 4, 2005 It would be pretty easy to use a regexp to check if the string contained any HTML-like tags, and then use: if(....) { $mail->setHtml($text); } else { $mail->setText($text); } I don't know the regexp functions very well, i'll just look one up... Quote Link to comment Share on other sites More sharing options...
Guest estelle Posted November 4, 2005 Share Posted November 4, 2005 I'm assuming you have applied Sir Will's email fix? Give this a go. Edit includes/content/gateway.inc.php Find the second occurance of this line (i.e. within Sir Will's email fix): $mail->setText($text); *Replace* it with this block: if (preg_match("/<.*>/",$text) { $mail->setHtml($text); } else { $mail->setText($text); } Estelle. Quote Link to comment Share on other sites More sharing options...
Guest GoodLiteCandles Posted November 8, 2005 Share Posted November 8, 2005 Thanks. I will give it a try tonight. Quote Link to comment Share on other sites More sharing options...
Guest estelle Posted November 8, 2005 Share Posted November 8, 2005 No worries! If it doesn't work, let me know and i'll have another look at it. Estelle. 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.