To check out this repository please hg clone the following URL, or open the URL using EasyMercurial or your preferred Mercurial client.

Statistics Download as Zip
| Branch: | Tag: | Revision:

root / .svn / pristine / 77 / 7718e8a0efeaa5f26e8369285e5ddf3e72a45738.svn-base @ 1297:0a574315af3e

History | View | Annotate | Download (833 Bytes)

1
class PluginMail < ActionMailer::Base
2
  def mail_from_plugin(note=nil)
3
    body(:note => note)
4
  end
5
  
6
  def mail_from_plugin_with_application_template(note=nil)
7
    body(:note => note)
8
  end
9
  
10
  def multipart_from_plugin
11
    content_type 'multipart/alternative'
12
    part :content_type => "text/html", :body => render_message("multipart_from_plugin_html", {})
13
    part "text/plain" do |p|
14
      p.body = render_message("multipart_from_plugin_plain", {})
15
    end
16
  end
17
  
18
  def multipart_from_plugin_with_application_template
19
    content_type 'multipart/alternative'
20
    part :content_type => "text/html", :body => render_message("multipart_from_plugin_with_application_template_html", {})
21
    part "text/plain" do |p|
22
      p.body = render_message("multipart_from_plugin_with_application_template_plain", {})
23
    end
24
  end  
25
  
26
end