MvcMailer
MvcMailer copied to clipboard
Css file
Hello, I tried to insert a css file to my mail instead of writing all the css at the end of the cshtml page.
The name of the css is Mail.css and it's in the folder Content/Mail.css i tried using
@Styles.Render("~/Content/css").And also, in the css file, I am using a small image to display. It is not displayed in the email. background: url("../Images/image.png") no-repeat;
Can you help me in some way ?
Was anoyone lucky with solving this problem?
You cannot add external style sheets to an email, all css has to be inside the page.
Ou... And did you find solution how to transform stylesheet reference such ass: @Styles.Render("~/Content/css")
to transforming it to include css styles directly into html elements inside email?
http://lmgtfy.com/?q=+inline+css+online