maestroc Posted June 2, 2013 Share Posted June 2, 2013 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 0 Quote Link to comment Share on other sites More sharing options...
And then there was one les Posted June 2, 2013 Share Posted June 2, 2013 in the email template there is a checkbox to send as plain text, check this is not enabled 0 Quote Link to comment Share on other sites More sharing options...
maestroc Posted June 2, 2013 Author Share Posted June 2, 2013 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? 0 Quote Link to comment Share on other sites More sharing options...
easyhosting Posted June 2, 2013 Share Posted June 2, 2013 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 0 Quote Link to comment Share on other sites More sharing options...
And then there was one les Posted June 3, 2013 Share Posted June 3, 2013 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 0 Quote Link to comment Share on other sites More sharing options...
maestroc Posted June 3, 2013 Author Share Posted June 3, 2013 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! 0 Quote Link to comment Share on other sites More sharing options...
easyhosting Posted June 3, 2013 Share Posted June 3, 2013 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 0 Quote Link to comment Share on other sites More sharing options...
bear Posted June 3, 2013 Share Posted June 3, 2013 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. 0 Quote Link to comment Share on other sites More sharing options...
easyhosting Posted June 3, 2013 Share Posted June 3, 2013 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 0 Quote Link to comment Share on other sites More sharing options...
And then there was one les Posted June 4, 2013 Share Posted June 4, 2013 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. 0 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.