HTML Email Question

6 posts by 2 authors in: Forums > CMS Builder
Last Post: October 20, 2014   (RSS)

By nmsinc - October 16, 2014

I have an email template within the CMS using the message placeholder listed below.

<p>#email.contents2#</p>

My problem is that the contents of the tag contains HTML and it's being parsed to the email like this "<font color="#0000ff">CONTENT OF TAG</font><br>" rather than the correct format as "CONTENT OF TAG".

Can anyone guide me in correcting this?

Thanks - nmsinc

nmsinc

By gregThomas - October 17, 2014

Hi nmsinc,

Would it be possible to post the code you're using to send the e-mail via the template, along with array that's constructing your placeholders? 

Thanks!

Greg

Greg Thomas







PHP Programmer - interactivetools.com

By nmsinc - October 17, 2014

Hi Greg,

Please see code below - thanks nmsinc

if ($independentEmailRecipients){
    foreach ($independentEmailRecipients as $recipient){
    $errors = sendMessage(_eia_emailTemplate_loadFromDB(array(
          'template_id'               => 'NOTES_SUBMITTED',
          'override-to'               => $recipient,
          'placeholders'              => $placeholders,
          'attachments'               => $sendAttachments,
          //'override-to'             => $override,
          )));
        if ($errors) { die("Error sending message: $errors\n\nCouldn't email primary insurer address on final event - please let us know about this error!"); }
    }
  }

nmsinc

By gregThomas - October 20, 2014

Hi nmsinc, 

Would it be possible to send me the code for the entire page, or the code that creates the placeholders variable? 

I'm thinking that the htmlencode function might be being used somewhere on the content2 variable before it gets added to the e-mail.

Thanks

Greg

Greg Thomas







PHP Programmer - interactivetools.com

By gregThomas - October 20, 2014

Hi Nmsinc,

Here is our contact form, you'll need second level support:

https://www.interactivetools.com/support/email_support_form.php

Thanks,

Greg

Greg Thomas







PHP Programmer - interactivetools.com