Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

HTML Body PostProcessor (integrating PreMailer) #81

Open
wants to merge 10 commits into
base: master
Choose a base branch
from

Conversation

hernangm
Copy link

@hernangm hernangm commented Feb 2, 2013

The best bet to styling html emails is to set the style attribute in the corresponding tags. However, most people usually have their style definitions in separate css files. There is plenty of documentation about this on the web (http://css-tricks.com/using-css-in-html-emails-the-real-story/).

So I have modified mvc.mailer so html body is passed through a list of configured post processors. One of this post-processor (based on the premailer library) removes style definition from the head tag and apply the rules to the corresponding tags in the body.

I followed the preprocessor pattern of SquishIt library. I hope this modification gets integrated to the master branch.

You've done a great job with Mvc.Mailer. I am using it in several projects. Thanks guys!

@smsohan
Copy link
Owner

smsohan commented Feb 2, 2013

Thanks for this. I'll probably need a bit if time to look at this, but I
surely will.


Sent from my iPhone
Sohan SM

On 2013-02-02, at 10:52 AM, Hernan Marano notifications@github.com wrote:

The best bet to styling html emails is to set the style attribute in the
corresponding tags. However, most people usually have their style
definitions in separate css files. There is plenty of documentation about
this on the web (
http://css-tricks.com/using-css-in-html-emails-the-real-story/).

So I have modified mvc.mailer so html body is passed through a list of
configured post processors. One of this post-processor (based on the
premailer library) removes style definition from the head tag and apply the
rules to the corresponding tags in the body.

I followed the preprocessor pattern of SquishIt library. I hope this
modification gets integrated to the master branch.

You've done a great job with Mvc.Mailer. I am using it in several projects.

Thanks guys!

You can merge this Pull Request by running

git pull https://github.com/hernangm/MvcMailer master

Or view, comment on, or merge it at:

#81
Commit Summary

  • adding inline Css transformation
  • gitignore
  • subiendo cambios
  • spliting projects
  • ultimos cambios
  • deleting trash
  • borrando trash
  • mas cambios
  • mas cambios

File Changes

Patch Links:

@hernangm
Copy link
Author

hernangm commented Feb 4, 2013

Don't worry, take ur time.

@darcythomas
Copy link

Bump.
I am planning manually including this fork into my project. However it would be great if you could merge this pull request in to the official nuget package. To ease maintainability etc.

Cheers:D

@sheam
Copy link

sheam commented Jun 21, 2015

Is this dead?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants