Jump to content

Customer/admin email


Guest GoodLiteCandles

Recommended Posts

Guest GoodLiteCandles

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.

Link to comment
Share on other sites

Guest estelle

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...

Link to comment
Share on other sites

Guest estelle

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.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...