smsohan / MvcMailer

A Mailer for ASP.Net MVC that forms the Email Body using MVC Views (Razor etc.) following Ruby on Rails ActionMailer style
MIT License
585 stars 176 forks source link

MVCMailer is taking out all the class definition. #103

Open jmogera opened 10 years ago

jmogera commented 10 years ago

We are using asp.net MVC 3, and the MVCMailer together. In our _Layout.cshtml file, we have a div's that have class associated with them.

i.e.

We are also pointing to an external css class like this:

<link href=@Url.Abs(Url.Content("~/Content/email.css")) rel="stylesheet" />

The someClass definition is in the email.css.

When we inspect the html of the email, we noticed that

doesn't have the class added to it anymore. Is MVCMailer taking it out? Or We are not setting up the css files correctly?

smsohan commented 10 years ago

Drop the mail into a pickup directory and see the contents. I'm pretty sure your email client is stripping off the styles.

Sohan http://smsohan.com skype:smsohan | gtalk:sohan39 | cell: 403-714-2673

On Tue, Jul 30, 2013 at 2:36 PM, Jason Mogera notifications@github.comwrote:

We are using asp.net MVC 3, and the MVCMailer together. In our _Layout.cshtml file, we have a div's that have class associated with them.

i.e.

We are also pointing to an external css class like this:

The someClass definition is in the email.css.

When we inspect the html of the email, we noticed that doesn't have the class added to it anymore. Is MVCMailer taking it out? Or We are not setting up the css files correctly?

— Reply to this email directly or view it on GitHubhttps://github.com/smsohan/MvcMailer/issues/103 .