Commit 287bfbf5f3870644cc71e2ca2812210380415ad8
1 parent
3b7df6e8
Exists in
staging
and in
4 other branches
Adding dialoga plugin
Showing
4 changed files
with
18 additions
and
7 deletions
Show diff stats
.gitmodules
... | ... | @@ -0,0 +1 @@ |
1 | +Subproject commit f15d572167ea9402a41a351288217319307ca129 | ... | ... |
plugins/proposals_discussion
script/sent_proposal_report
... | ... | @@ -42,14 +42,21 @@ file.close |
42 | 42 | |
43 | 43 | |
44 | 44 | message = <<MESSAGE_END |
45 | -From: Relatorio Dialoga <relatorio@dialoga.gov.br> | |
46 | -To: Leandro <leandronunes@gmail.com> | |
47 | -Subject: Relatorio do Dialoga | |
48 | 45 | |
49 | 46 | Segue em anexo o relatorio do Dialoga. |
50 | 47 | MESSAGE_END |
51 | 48 | |
52 | -Net::SMTP.start('localhost') do |smtp| | |
53 | - smtp.send_message message, 'leandronunes@gmail.com', | |
54 | - 'leandro.santos@serpro.gov.br' | |
49 | +#Net::SMTP.start('localhost') do |smtp| | |
50 | +# smtp.send_message message, 'leandronunes@gmail.com', | |
51 | +# 'leandro.santos@serpro.gov.br' | |
52 | +#end | |
53 | + | |
54 | + | |
55 | +ActionMailer::Base.logger = Logger.new(STDOUT) | |
56 | +class Sender < ActionMailer::Base | |
57 | + def test(to, from) | |
58 | + mail to: to, from: from, | |
59 | + subject: "Relatorio do Dialoga", body: message | |
60 | + end | |
55 | 61 | end |
62 | +Sender.test(['leandro.santos@serpro.gov.br', 'leandronunes@gmail.com'], 'dialoga@dialoga.gov.br').deliver | ... | ... |