Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
hi All,
Trying to create HTML report with some background color, the background color is coming fine in attachment of report.
But when embedding same report on mail body not getting required background color its just coming as white.
please suggest.
Thanks in Advance
@Lech_Miszkiewicz could you able to suggest on this pls
Hi, yes I can comment on that.
In fact this is not NPrinting issue at all.
Email clients behave differently and they are pain in the back side to work with when designing html reports. You always need to check and verify which style will be supported in your email clients. Assuming that nowadays people use PCs with Windows, Macs, Phones (Android/Iphone) , Outlook, Gmail, Web etc... you have to check what will and what will not work in those different scenarios. I dont want to say that this website is the best : https://www.campaignmonitor.com/css/ but at least it will give you idea what you need to work with.
Then it is a matter of using inline vs external CSS. From my experience inline seem to work much better.
Lastly - keep in mind that only part of HTML code from your template between <BODY> </BODY> tags is making its way to email body. Any code outside of those tags is being removed.
cheers