Mercurial > hg > soundsoftware-site
annotate .svn/pristine/77/7718e8a0efeaa5f26e8369285e5ddf3e72a45738.svn-base @ 1327:287f201c2802 redmine-2.2-integration
Add italic
author | Chris Cannam <chris.cannam@soundsoftware.ac.uk> |
---|---|
date | Wed, 19 Jun 2013 20:56:22 +0100 |
parents | cbb26bc654de |
children |
rev | line source |
---|---|
Chris@909 | 1 class PluginMail < ActionMailer::Base |
Chris@909 | 2 def mail_from_plugin(note=nil) |
Chris@909 | 3 body(:note => note) |
Chris@909 | 4 end |
Chris@909 | 5 |
Chris@909 | 6 def mail_from_plugin_with_application_template(note=nil) |
Chris@909 | 7 body(:note => note) |
Chris@909 | 8 end |
Chris@909 | 9 |
Chris@909 | 10 def multipart_from_plugin |
Chris@909 | 11 content_type 'multipart/alternative' |
Chris@909 | 12 part :content_type => "text/html", :body => render_message("multipart_from_plugin_html", {}) |
Chris@909 | 13 part "text/plain" do |p| |
Chris@909 | 14 p.body = render_message("multipart_from_plugin_plain", {}) |
Chris@909 | 15 end |
Chris@909 | 16 end |
Chris@909 | 17 |
Chris@909 | 18 def multipart_from_plugin_with_application_template |
Chris@909 | 19 content_type 'multipart/alternative' |
Chris@909 | 20 part :content_type => "text/html", :body => render_message("multipart_from_plugin_with_application_template_html", {}) |
Chris@909 | 21 part "text/plain" do |p| |
Chris@909 | 22 p.body = render_message("multipart_from_plugin_with_application_template_plain", {}) |
Chris@909 | 23 end |
Chris@909 | 24 end |
Chris@909 | 25 |
Chris@909 | 26 end |