view .svn/pristine/12/12d2aa017b97ff487eca5cc334afe4f6ec1d0dc6.svn-base @ 1137:66b9ab6cf9d7 redmine-2.2-integration

We don't use ZeroClipboard, just scrub this stuff (image_path with 2 args doesn't appear to work any more)
author Chris Cannam <chris.cannam@soundsoftware.ac.uk>
date Thu, 10 Jan 2013 11:11:15 +0000
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