Jump to content

Big LOGO in the mail


ABWebSolutions

Recommended Posts

The thing is WHMCS uses System Settings > General > Logo URL in three different places:

  • Website
  • PDF files (quotes and invoices)
  • Email notifications

You can easily tune dimensions in website with CSS, by simply editing header.tpl pointing to a different URL or simply let responsiveness do its job. Same for PDF files with FPDF syntax.

Now when it comes to Email Templates, WHMCS prepends this same logo in all emails "as is" (original dimensions). If your logo happen to be 1920x1980 px, no resize occurs. It will show at full size which is the problem you are experiencing. You have two options:

  • Change your System Settings > General > Logo URL so that it points to a logo of decent sizes (not to the "full HD" version). Once done make sure your logo still shows correctly on website and PDF files. If something isn't quite right simply play with CSS/FPDF or define dedicated URLs just for the website and/or PDF
  • Override {$logo} Smarty variable via EmailPreSend hook point with a smaller version. This way WHMCS initially plans to use the 1920x1980 px versions but before it sends the email you override it with another logo/URL with correct dimensions (eg. 250x80 px)
Edited by Kian
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