view .svn/pristine/12/12d2aa017b97ff487eca5cc334afe4f6ec1d0dc6.svn-base @ 1296:038ba2d95de8 redmine-2.2

Fix redmine-2.2 branch update (add missing svn files)
author Chris Cannam
date Fri, 14 Jun 2013 09:05:06 +0100
parents cbb26bc654de
children
line wrap: on
line source
class NotifyMail < ActionMailer::Base

  helper :mail
  
  def signup(txt)
    body(:name => txt)
  end
  
  def multipart
    recipients 'some_address@email.com'
    subject    'multi part email'
    from       "another_user@email.com"
    content_type 'multipart/alternative'
    
    part :content_type => "text/html", :body => render_message("multipart_html", {})
    part "text/plain" do |p|
      p.body = render_message("multipart_plain", {})
    end
  end
  
  def implicit_multipart
    recipients 'some_address@email.com'
    subject    'multi part email'
    from       "another_user@email.com"
  end
end