Jump to content

Additional Line Breaks in Global Email signature - HTML


Dtorr1981

Recommended Posts

OK, so i am attempting to smooth out all the issues before going live with my site, so here is another little issue i am having.

 

When i save my global signature in the general settings all is fine, i can paste the code after save into a jsfiddle and it renders correctly. However, when the email actually gets sent and view it via the admin panel and toggle to HTML, i am getting <p></p> tags added after my own </p> close tags, thus creating huge line spaces in the signature. These are not present in the code in the global signature? This also shows in the received email.

 

Any ideas? Is this a bug that i am unaware of? My Code is below:

 

<p style="font-family: Helvetica,Arial,sans-serif; font-size: 10px; line-height: 12px;">
     <a style="text-decoration:none" href="http://www.sitewidedesign.co.uk" class="clink sig-hide logo-container">
         <img src="http://www.sitewidedesign.co.uk/templates/gk_simplicity/images/style1/logo_white_bg.png" alt="Site Wide Design" class="sig-logo" border="0" height="60" width="202">
     </a>
   </p>
   <p style="font-family: Helvetica, Arial, sans-serif; font-size: 10px; line-height: 12px; color: #212121;"><span style="font-weight: bold; display: inline;" class="txt signature_name-input sig-hide">Support</span>
    <span style="" class="txt signature_jobtitle-input sig-hide"></span>
     <span style="display: inline;" class="email-sep break"><br></span>
     <a class="link email signature_email-input sig-hide" href="mailto:Support@sitewidedesign.co.uk" style="text-decoration: none; display: inline;">Support@sitewidedesign.co.uk</a><span style="" class="txt signature_mobilephone-input sig-hide"></span></p>
   <p style="font-family: Helvetica, Arial, sans-serif; font-size: 10px; line-height: 12px">
       <span style="font-weight: bold; display: inline;" class="txt signature_companyname-input sig-hide">SiteWide Design</span>
       <span style="display: inline;" class="company-sep break"><br></span>
        <span style="" class="txt signature_officephone-input sig-hide"></span> 
        <span style="" class="txt signature_fax-input sig-hide"></span>
       <span class="address-sep break"></span> <span style="" class="txt signature_address-input sig-hide"></span>
       <span class="website-sep break"></span>
       <a class="link signature_website-input sig-hide" href="http://www.sitewidedesign.co.uk" style="text-decoration: none; display: inline;">http://www.sitewidedesign.co.uk</a>
   </p>
       <p style="font-family: Helvetica, Arial, sans-serif; font-size: 10px; line-height: 12px">
       <span style="font-weight: bold; display: inline;" class="txt signature_companyname-input sig-hide">SiteWide Hosting</span>
       <span style="display: inline;" class="company-sep break"><br></span>
        <span style="" class="txt signature_officephone-input sig-hide"></span> 
        <span style="" class="txt signature_fax-input sig-hide"></span>
       <span class="address-sep break"></span> <span style="" class="txt signature_address-input sig-hide"></span>
       <span class="website-sep break"></span>
       <a class="link signature_website-input sig-hide" href="http://www.sitewidedesign.co.uk" style="text-decoration: none; display: inline;">http://www.sitewidehosting.co.uk</a>
   </p>
    <p style="font-family: Helvetica,Arial,sans-serif; font-size: 10px; line-height: 12px;">
     </p>
   <p style="font-family: Helvetica,Arial,sans-serif; font-size: 10px; line-height: 12px;" class="banner-container"></p>
   <p style="font-family: Helvetica,Arial,sans-serif; font-size: 9px; line-height: 12px;" class="txt signature_disclaimer-input">This e-mail message may contain confidential or legally privileged information and is intended only for the use of the intended recipient(s). Any unauthorized disclosure, dissemination, distribution, copying or the taking of any action in reliance on the information herein is prohibited. E-mails are not secure and cannot be guaranteed to be error free as they can be intercepted, amended, or contain viruses. Anyone who communicates with us by e-mail is deemed to have accepted these risks. Company Name is not responsible for errors or omissions in this message and denies any responsibility for any damage arising from the use of e-mail. Any opinion and other statement contained in this message and any attachment are solely those of the author and do not necessarily represent those of the company.</p>

 

But as you can see the code which is sent has the extra <p> tags:

<p>Dear Name Omitted,</p>
<p>Thank you for signing up with us. Your new account has been setup and you can now login to our client area using the details below.</p>
<p>Email Address: name@hotmail.co.uk<br /> Password: **********</p>
<p>To login, visit https://www.sitewidedesign.co.uk/hosting/</p>
<p style="font-family: Helvetica,Arial,sans-serif; font-size: 10px; line-height: 12px;"><br /> <a class="clink sig-hide logo-container" style="text-decoration: none;" href="http://www.sitewidedesign.co.uk"><br /> <img class="sig-logo" src="http://www.sitewidedesign.co.uk/templates/gk_simplicity/images/style1/logo_white_bg.png" alt="Site Wide Design" width="202" height="60" border="0" /><br /> </a></p>
<p>****</p>
<p style="font-family: Helvetica, Arial, sans-serif; font-size: 10px; line-height: 12px; color: #212121;"><span class="txt signature_name-input sig-hide" style="font-weight: bold; display: inline;">Support</span><br /> <br /> <span class="email-sep break" style="display: inline;"><br /></span><br /> <a class="link email signature_email-input sig-hide" style="text-decoration: none; display: inline;" href="mailto:Support@sitewidedesign.co.uk">Support@sitewidedesign.co.uk</a></p>
<p>****</p>
<p style="font-family: Helvetica, Arial, sans-serif; font-size: 10px; line-height: 12px;"><br /> <span class="txt signature_companyname-input sig-hide" style="font-weight: bold; display: inline;">SiteWide Design</span><br /> <span class="company-sep break" style="display: inline;"><br /></span><br /> <br /> <br /> <br /> <br /> <a class="link signature_website-input sig-hide" style="text-decoration: none; display: inline;" href="http://www.sitewidedesign.co.uk">http://www.sitewidedesign.co.uk</a></p>
<p>****</p>
<p style="font-family: Helvetica, Arial, sans-serif; font-size: 10px; line-height: 12px;"><br /> <span class="txt signature_companyname-input sig-hide" style="font-weight: bold; display: inline;">SiteWide Hosting</span><br /> <span class="company-sep break" style="display: inline;"><br /></span><br /> <br /> <br /> <br /> <br /> <a class="link signature_website-input sig-hide" style="text-decoration: none; display: inline;" href="http://www.sitewidedesign.co.uk">http://www.sitewidehosting.co.uk</a></p>
<p>****</p>
<p style="font-family: Helvetica,Arial,sans-serif; font-size: 10px; line-height: 12px;">****</p>
<p>****</p>
<p class="banner-container" style="font-family: Helvetica,Arial,sans-serif; font-size: 10px; line-height: 12px;">****</p>
<p>****</p>
<p class="txt signature_disclaimer-input" style="font-family: Helvetica,Arial,sans-serif; font-size: 9px; line-height: 12px;">This e-mail message may contain confidential or legally privileged information and is intended only for the use of the intended recipient(s). Any unauthorized disclosure, dissemination, distribution, copying or the taking of any action in reliance on the information herein is prohibited. E-mails are not secure and cannot be guaranteed to be error free as they can be intercepted, amended, or contain viruses. Anyone who communicates with us by e-mail is deemed to have accepted these risks. Company Name is not responsible for errors or omissions in this message and denies any responsibility for any damage arising from the use of e-mail. Any opinion and other statement contained in this message and any attachment are solely those of the author and do not necessarily represent those of the company.</p>

 

Any ideas?

 

Best Regards

Donna

Link to comment
Share on other sites

Donna,

 

have you tried bypassing WHMCS and putting the signature code directly into the tblconfiguration database table (e.g via phpmyadmin) ?

 

that should tell you whether the extra code is being added when saving changes, or if the mail side is interpreting your code wrongly.

Edited by brian!
Link to comment
Share on other sites

Hmm...I can't seem to edit the table, the options don't appear for me to edit the entry for the global emails. Any suggestions?

 

Ok, i have dumped the data out of the table so i can modify it then i'll re-insert it. I'm just considering a new signature design so will check it out and report back.

Edited by Dtorr1981
Link to comment
Share on other sites

I was specifically thinking of the 'Signature' value - but you seem to be correct in that phpmyadmin can't edit it... :roll:

 

This table does not contain a unique column. Grid edit, checkbox, Edit, Copy and Delete features are not available.

when I tried it yesterday, I did so using Navicat (a very useful mysql program) and just assumed phpmyadmin would be able to do the same... my mistake!

Link to comment
Share on other sites

I was specifically thinking of the 'Signature' value - but you seem to be correct in that phpmyadmin can't edit it... :roll:

 

 

when I tried it yesterday, I did so using Navicat (a very useful mysql program) and just assumed phpmyadmin would be able to do the same... my mistake!

 

I found the signature in the end, it was because i only had a very limited view the first thing i came to was the email footer. Needless to say i inserted the code via a query and it seems to render correctly. I'll have a look into navicat, it sounds interesting. Thank you for your support.

Best Regards

Donna

Link to comment
Share on other sites

I found the signature in the end, it was because i only had a very limited view the first thing i came to was the email footer. Needless to say i inserted the code via a query and it seems to render correctly.

if it was WHMCS that was corrupting the output, might be worth opening a ticket or bug report about it - I would imagine we're only a few weeks away from the next release, so if the bug is confirmed, it might be resolved reasonable quickly (in WHMCS terms of 'quick').

 

I'll have a look into navicat, it sounds interesting.

I should probably mention that it isn't free - though I expect they'll be a trial version of some sort... i've used it for years and so was worth the investment.

Link to comment
Share on other sites

  • WHMCS Support Manager

Hi,

I can confirm this is an issue of which we're aware and that case #CORE-10080 is open with our developers in order to have this reviewed for future releases. Unfortunately, I cannot provide an estimated time for completion for this. However, once we resolve cases and push features they are available at our change log, here:

 

http://changelog.whmcs.com/

 

I apologize for the inconvenience, and appreciate your patience as we work to resolve this.

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