annotate .svn/pristine/12/12d2aa017b97ff487eca5cc334afe4f6ec1d0dc6.svn-base @ 1628:9c5f8e24dadc live tip

Quieten this cron script
author Chris Cannam
date Tue, 25 Aug 2020 11:38:49 +0100
parents cbb26bc654de
children
rev   line source
Chris@909 1 class NotifyMail < ActionMailer::Base
Chris@909 2
Chris@909 3 helper :mail
Chris@909 4
Chris@909 5 def signup(txt)
Chris@909 6 body(:name => txt)
Chris@909 7 end
Chris@909 8
Chris@909 9 def multipart
Chris@909 10 recipients 'some_address@email.com'
Chris@909 11 subject 'multi part email'
Chris@909 12 from "another_user@email.com"
Chris@909 13 content_type 'multipart/alternative'
Chris@909 14
Chris@909 15 part :content_type => "text/html", :body => render_message("multipart_html", {})
Chris@909 16 part "text/plain" do |p|
Chris@909 17 p.body = render_message("multipart_plain", {})
Chris@909 18 end
Chris@909 19 end
Chris@909 20
Chris@909 21 def implicit_multipart
Chris@909 22 recipients 'some_address@email.com'
Chris@909 23 subject 'multi part email'
Chris@909 24 from "another_user@email.com"
Chris@909 25 end
Chris@909 26 end