ABWebSolutions Posted February 15, 2023 Share Posted February 15, 2023 hello, I discovered that the logo on WHMCS mails is huge, in fact my customers receive the mail in the way you can see from the photos. Could you help me to solve this problem to resize the logo? Thank you! 0 Quote Link to comment Share on other sites More sharing options...
Kian Posted February 15, 2023 Share Posted February 15, 2023 (edited) Are you using a SVG file as logo? If so, get rid of it since you can't set dimensions to SVG files via Smarty in Email Templates. That's why you see them full-screen. Use any other format like PNG. Edited February 15, 2023 by Kian 0 Quote Link to comment Share on other sites More sharing options...
ABWebSolutions Posted February 15, 2023 Author Share Posted February 15, 2023 ok thanks, and from where should I change the logo of the mails? 0 Quote Link to comment Share on other sites More sharing options...
Kian Posted February 15, 2023 Share Posted February 15, 2023 (edited) System Settings > General > Logo URL Keep in mind this could also affect logo displayed in PDF invoices & quotes and website. It depends on how you customized them. Edited February 15, 2023 by Kian 0 Quote Link to comment Share on other sites More sharing options...
ABWebSolutions Posted February 15, 2023 Author Share Posted February 15, 2023 the format is in jpg, could it be that I just have to reduce the logo? Thank you /area-clienti/assets/img/logo.jpg 0 Quote Link to comment Share on other sites More sharing options...
Kian Posted February 15, 2023 Share Posted February 15, 2023 (edited) 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 February 15, 2023 by Kian 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.