
Security News
New Website “Is It Really FOSS?” Tracks Transparency in Open Source Distribution Models
A new site reviews software projects to reveal if they’re truly FOSS, making complex licensing and distribution models easy to understand.
grimen-awesome_email
Advanced tools
h2. For the impatient
Check out the demo application:
"http://opensource.imedo.de/htmlmail":http://opensource.imedo.de/htmlmail
Install as plugin:
script/plugin install git://github.com/grimen/awesome_email.git
Install as gem:
sudo install grimen-awesome_email
Learn how to use it below.
h2. Introduction
Have you ever tried sending HTML emails to your users? If you did, you know for sure that it sucks big time: none of the usual ActionView helpers want to work, URL routing is disabled, layouts don't work, and last but not least, the CSS you wrote for your email "simply won't work in any e-mail client":http://www.sitepoint.com/blogs/2007/01/10/microsoft-breaks-html-email-rendering-in-outlook except maybe Apple Mail. To solve all of the above problems, the awesome_email
plugin comes to the rescue. Just install it into your vendor/plugins
folder, and the rest comes by itself.
If you are interested in what works in which Email client check this link: "A guide to css support in Email":http://www.campaignmonitor.com/css/
h2. What does it do?
There are a few interesting components in awesome_email
:
ä
and so on.h2. How to use it
In your Mailer.delivery_xxx methods you can use
<macro:code lang="ruby"> layout "template_filename" css "css_filename" </macro:code>
to define which layout should be used and which css file should be used to create inline styles
h3. CSS inlining
The cummulated style of each DOM element will be set as an style attribute when using css inlining.
Example:
your css file: <macro:code lang="css"> #some-id { font-size:2em; } .some-class { color:red; } </macro:code>
your template: <macro:code lang="html">
Hello World!
will result in the following code: <macro:code lang="html">
Hello World!
h2. Important!
Be sure to follow these simple conventions or otherwise awesome_emails's magic will fail:
app/views/layouts/{mailer_name}
/public/stylesheets
h2. Dependencies
Gems:
h2. Getting it, License and Patches
Get the original source code through "http://github.com/imedo/awesome_email":http://github.com/imedo/awesome_email. License is MIT. That means that you can do whatever you want with the software, as long as the copyright statement stays intact. Please be a kind open source citizen, and give back your patches and extensions. Just fork the code on Github, and after you're done, send us a pull request. Thanks for your help!
h2. ToDo
Copyright (c) 2008 imedo GmbH, released under the MIT license
FAQs
Unknown package
We found that grimen-awesome_email demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
A new site reviews software projects to reveal if they’re truly FOSS, making complex licensing and distribution models easy to understand.
Security News
Astral unveils pyx, a Python-native package registry in beta, designed to speed installs, enhance security, and integrate deeply with uv.
Security News
The Latio podcast explores how static and runtime reachability help teams prioritize exploitable vulnerabilities and streamline AppSec workflows.