Jump to content

System displaying raw HTML in emails


maestroc

Recommended Posts

When my WHMCS system sends out an email it should display the company logo at the top of the document. However, when a customer receives an email from the system right now they get the raw HTML which does not seem to want to render correctly (at least in my testing).

 

Here is an example of what the system is sending out:

 

--------------------------------

<p><a href="http://www.myhostingcompany.net" target="_blank"><img src="https://www.myhostingcompany.net/whmcs/templates/default/img/logo.png" alt="My Hosting" border="0" /></a></p> Dear XYZ,

 

I wanted to take a minute to welcome you to....

 

---------------------------------

 

Is there a setting somewhere that I need to tweak to make the logo render properly?

 

Thank you,

MaestroC

Link to comment
Share on other sites

I think this may be a different problem...

 

I see that plain text check box when I go to edit the individual templates, but what I was trying to do was send a message directly to a single customer by clicking the box next to their name in the client list then clicking Send Message. After putting in my message and sending it the system added the logo HTML to the top of the message.

 

I do not see anywhere on that editor form where you can send or not send in plain text.

 

Is there a setting somewhere that tells the system to always send HTML emails?

Link to comment
Share on other sites

I think this may be a different problem...

 

I see that plain text check box when I go to edit the individual templates, but what I was trying to do was send a message directly to a single customer by clicking the box next to their name in the client list then clicking Send Message. After putting in my message and sending it the system added the logo HTML to the top of the message.

 

I do not see anywhere on that editor form where you can send or not send in plain text.

 

Is there a setting somewhere that tells the system to always send HTML emails?

 

In your admin area under setup > General settings > Mail look for Global Email Header Content and then add this in the box

 

<p><a href="{$company_domain}" target="_blank"><img src="{$company_logo_url}" alt="{$company_name}" border="0" /></a></p> 

 

this should display your logo in the emails

Link to comment
Share on other sites

In your admin area under setup > General settings > Mail look for Global Email Header Content and then add this in the box

 

<p><a href="{$company_domain}" target="_blank"><img src="{$company_logo_url}" alt="{$company_name}" border="0" /></a></p> 

 

this should display your logo in the emails

 

That fixed it. When I went to that place in the settings the text that was already in the box was:

 

<p><a href="{$company_domain}" target="_blank"><img src="{$company_logo_url}" alt="{$company_name}" border="0" /></a></p>

 

No idea how that got there because I did not put it in. When I pasted in the normal html it all works properly. Thank you!

Link to comment
Share on other sites

That shouldnt be needed easyhosting If you supply the url on the general tab for your logo then the emails should automagically contain them.. some sorta voodoo i think ;)

 

That is all we use combined with the logo added as you state and everything works fine and as it should do

Link to comment
Share on other sites

That fixed it. When I went to that place in the settings the text that was already in the box was

Was it exactly like that?

<p><a href="{$company_domain}" target="_blank"><img src="{$company_logo_url}" alt="{$company_name}" border="0" /></a></p>

If so, that would explain why it displayed as plain text instead of rendered, but not why it was in the box like that. It should have been ordinary HTML and not entities; it is in mine.

Link to comment
Share on other sites

That fixed it. When I went to that place in the settings the text that was already in the box was:

 

<p><a href="{$company_domain}" target="_blank"><img src="{$company_logo_url}" alt="{$company_name}" border="0" /></a></p>

 

No idea how that got there because I did not put it in. When I pasted in the normal html it all works properly. Thank you!

 

No Problem, pleased i was able to help you fix it, strange on why it was displaying as entities and not plain HTML

Link to comment
Share on other sites

Is there a setting somewhere that tells the system to always send HTML emails?

 

Not that i have found, I think the default is html and each template has that checkbox to send it as plain text. What i really want to see id support for various email types to suit different devices, i have several clients that only use mobiles and they hate my emails.

 

The look smart but dont render well on small devices. Im thinking i might have to make my own module to do it so clients can say.. hey i have a small screen send me smaller emails. then they can see my pretty emails too lol.

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.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated