plusplushosting Posted August 30, 2016 Share Posted August 30, 2016 Hi, anyone know which file i have to touch to modify the emails template HEAD code section? Im not asking about the header/footer/Css which can be done thorugh the Setup section. Im talking about the html code itself. I need add custom html code in the <HEAD> section in the html file. Thanx in advance! 0 Quote Link to comment Share on other sites More sharing options...
brian! Posted August 30, 2016 Share Posted August 30, 2016 are you sure it's not the "Client Email Header Content" that you should be editing (in the setup -> mail section) ? I assume that you've tried putting your HTML code in there ?? 0 Quote Link to comment Share on other sites More sharing options...
plusplushosting Posted August 30, 2016 Author Share Posted August 30, 2016 Well...i guess thats only to put the header content but im not sure if you can put stuff like..... <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> 0 Quote Link to comment Share on other sites More sharing options...
brian! Posted August 30, 2016 Share Posted August 30, 2016 take a look at the Email Styling documentation - specifically the Global Email Header and how that includes very similar doctype code to yours. http://docs.whmcs.com/Email_Styling it should just be a case of using your code to replace the similar code already there. 0 Quote Link to comment Share on other sites More sharing options...
plusplushosting Posted August 30, 2016 Author Share Posted August 30, 2016 Thanx Brian! That clarify it 0 Quote Link to comment Share on other sites More sharing options...
plusplushosting Posted August 30, 2016 Author Share Posted August 30, 2016 Ok, sorry...going further...is there any way to use smarty conditionals or language variables the same way used in the tpl files in the header/footer section in the Setup section? Thanx! 0 Quote Link to comment Share on other sites More sharing options...
brian! Posted August 30, 2016 Share Posted August 30, 2016 Ok, sorry...going further...is there any way to use smarty conditionals or language variables the same way used in the tpl files in the header/footer section in the Setup section? Thanx! you should be able to use Smarty conditionals because it is ultimately a Smarty template... you can add {debug} to header and/or footer and when you send/preview an email, you should generate a popup window of available Smarty variables. i'm not sure about language variables though - never had reason to try them in the header or footer... I doubt they would work , but feel free to test them and let me know if i'm wrong. also, I don't think the header/footer will know which email template will be used inside it, so you couldn't use Smarty to say do something in the header only for a specific email template. 0 Quote Link to comment Share on other sites More sharing options...
plusplushosting Posted August 30, 2016 Author Share Posted August 30, 2016 Thanx again! Yes, there is a client_language variable i have used. Thanx! 0 Quote Link to comment Share on other sites More sharing options...
plusplushosting Posted August 31, 2016 Author Share Posted August 31, 2016 Hi Brian, ill abuse of your kindness again Is there any way to add tags like... <!--[if (gte mso 9)|(IE)]> <style type="text/css"> table {border-collapse: collapse;} </style> <![endif]--> in the email templates without breaking them? Adding such things are making whmcs tell me there is no body in the message. Thanx! 0 Quote Link to comment Share on other sites More sharing options...
plusplushosting Posted August 31, 2016 Author Share Posted August 31, 2016 ok, i guess i could do this with {literal}. Thanx! 0 Quote Link to comment Share on other sites More sharing options...
brian! Posted August 31, 2016 Share Posted August 31, 2016 are you adding the code to the email templates themselves or the header directly? I would have thought it would fail if adding to the template, but should be fine adding it to the header... or you may need to use {literal} 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.