function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Piersoft PPiersoft P 

Visualforce Email Template Styles Not Working

Hi

I have developed visualforce email template with visualforce component,and i was tested the design using vf pages it looks fine, but same template sending as email the the styles not applying in the component, and jquery also not working for the email. please share your thoughts.

Thanks in advance
 
Khan AnasKhan Anas (Salesforce Developers) 
Hi Piersoft,

Greetings to you!

You make sure that you are using Inline CSS instead of external Style Sheets and using cross-browser compatible CSS Attributes.

Please refer to the below links which might help you further with the above issue.

https://success.salesforce.com/answers?id=90630000000hqBjAAI

https://salesforce.stackexchange.com/questions/94254/need-help-in-updating-a-vf-email-template

I hope it helps you.

Kindly let me know if it helps you and close your query by marking it as solved so that it can help others in the future. It will help to keep this community clean.

Thanks and Regards,
Khan Anas
Ajay K DubediAjay K Dubedi
Hi Piersoft,

Here are detail that are using for Buid VF email template with Custom CSS for using Best praticse :
https://developer.salesforce.com/docs/atlas.en-us.pages.meta/pages/pages_email_templates_stylesheets.htm

I hope you find the above solution helpful. If it does, please mark as Best Answer to help others too.

Thanks,
Ajay Dubedi