Sha256: 55ec81b6098e342f2c1893e021f30fa2ee7f5fad2f8a12db8a3dbc3935daea6b
Contents?: true
Size: 1.54 KB
Versions: 2
Compression:
Stored size: 1.54 KB
Contents
ActionMailer::Text ================== Automatically insert a text/plain part into your HTML multipart e-mails. ### This version of actionmailer-text uses Nokogiri to parse html, to use the original version go [here](https://github.com/dblock/actionmailer-text) ## Installation ```ruby gem 'actionmailer-textgiri' ``` ## Usage ```ruby class WelcomeMailer < ActionMailer::Base include ActionMailer::Text default from: 'welcome@example.org' def welcome(user) @user = user mail(to: @user.email, subject: 'Welcome!') do |format| format.html { render 'welcome' } end end end ``` ## Details The MIME standard allows systems to send e-mail with multiple parts: plain/text for business-efficient devices such as the Blackberry, and text/html for web-based e-mail readers, such as GMail. Furthermore, ActionMailer supports multiple template formats: create an .html.haml template along with a .txt.haml template to generate both. We also know that text/plain email helps deliverability, but we believe a disproportionately small amount of text e-mails are actually read - the vast majority of devices are capable of parsing some HTML. This gem lets you get the text/plain part for free. See [this blog post](http://artsy.github.io/blog/2012/05/16/generating-automatic-plain-text-mime-parts-with-rails-actionmailer) for details. ## Contributing See [CONTRIBUTING](CONTRIBUTING.md). ## Copyright and License Copyright (c) 2015, Daniel Doubrovkine, Artsy and [Contributors](CHANGELOG.md). This project is licensed under the [MIT License](LICENSE.md).
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
actionmailer-textgiri-0.2 | README.md |
actionmailer-textgiri-0.1.2 | README.md |