Class: PluginMail
- Inherits:
-
ActionMailer::Base
- Object
- ActionMailer::Base
- PluginMail
- Defined in:
- vendor/plugins/engines/test/plugins/test_plugin_mailing/app/models/plugin_mail.rb
Instance Method Summary
- - (Object) mail_from_plugin(note = nil)
- - (Object) mail_from_plugin_with_application_template(note = nil)
- - (Object) multipart_from_plugin
- - (Object) multipart_from_plugin_with_application_template
Instance Method Details
- (Object) mail_from_plugin(note = nil)
2 3 4 |
# File 'vendor/plugins/engines/test/plugins/test_plugin_mailing/app/models/plugin_mail.rb', line 2 def mail_from_plugin(note=nil) body(:note => note) end |
- (Object) mail_from_plugin_with_application_template(note = nil)
6 7 8 |
# File 'vendor/plugins/engines/test/plugins/test_plugin_mailing/app/models/plugin_mail.rb', line 6 def mail_from_plugin_with_application_template(note=nil) body(:note => note) end |
- (Object) multipart_from_plugin
10 11 12 13 14 15 16 |
# File 'vendor/plugins/engines/test/plugins/test_plugin_mailing/app/models/plugin_mail.rb', line 10 def multipart_from_plugin content_type 'multipart/alternative' part :content_type => "text/html", :body => ("multipart_from_plugin_html", {}) part "text/plain" do |p| p.body = ("multipart_from_plugin_plain", {}) end end |
- (Object) multipart_from_plugin_with_application_template
18 19 20 21 22 23 24 |
# File 'vendor/plugins/engines/test/plugins/test_plugin_mailing/app/models/plugin_mail.rb', line 18 def multipart_from_plugin_with_application_template content_type 'multipart/alternative' part :content_type => "text/html", :body => ("multipart_from_plugin_with_application_template_html", {}) part "text/plain" do |p| p.body = ("multipart_from_plugin_with_application_template_plain", {}) end end |