comparison .svn/pristine/12/12d2aa017b97ff487eca5cc334afe4f6ec1d0dc6.svn-base @ 909:cbb26bc654de redmine-1.3

Update to Redmine 1.3-stable branch (Redmine SVN rev 8964)
author Chris Cannam
date Fri, 24 Feb 2012 19:09:32 +0000
parents
children
comparison
equal deleted inserted replaced
908:c6c2cbd0afee 909:cbb26bc654de
1 class NotifyMail < ActionMailer::Base
2
3 helper :mail
4
5 def signup(txt)
6 body(:name => txt)
7 end
8
9 def multipart
10 recipients 'some_address@email.com'
11 subject 'multi part email'
12 from "another_user@email.com"
13 content_type 'multipart/alternative'
14
15 part :content_type => "text/html", :body => render_message("multipart_html", {})
16 part "text/plain" do |p|
17 p.body = render_message("multipart_plain", {})
18 end
19 end
20
21 def implicit_multipart
22 recipients 'some_address@email.com'
23 subject 'multi part email'
24 from "another_user@email.com"
25 end
26 end