From 287bfbf5f3870644cc71e2ca2812210380415ad8 Mon Sep 17 00:00:00 2001 From: Leandro Nunes dos Santos Date: Wed, 5 Aug 2015 19:18:58 -0300 Subject: [PATCH] Adding dialoga plugin --- .gitmodules | 3 +++ plugins/dialoga | 1 + plugins/proposals_discussion | 2 +- script/sent_proposal_report | 19 +++++++++++++------ 4 files changed, 18 insertions(+), 7 deletions(-) create mode 160000 plugins/dialoga diff --git a/.gitmodules b/.gitmodules index 88f608a..366a86b 100644 --- a/.gitmodules +++ b/.gitmodules @@ -34,3 +34,6 @@ [submodule "plugins/juventude"] path = plugins/juventude url = https://gitlab.com/noosfero-plugins/juventude.git +[submodule "plugins/dialoga"] + path = plugins/dialoga + url = https://gitlab.com/participa/dialoga-plugin.git diff --git a/plugins/dialoga b/plugins/dialoga new file mode 160000 index 0000000..f15d572 --- /dev/null +++ b/plugins/dialoga @@ -0,0 +1 @@ +Subproject commit f15d572167ea9402a41a351288217319307ca129 diff --git a/plugins/proposals_discussion b/plugins/proposals_discussion index bc3e832..7e2853f 160000 --- a/plugins/proposals_discussion +++ b/plugins/proposals_discussion @@ -1 +1 @@ -Subproject commit bc3e832ee4f96edbefa5d377a332e4c67cdffa35 +Subproject commit 7e2853fcea820505bf1682c509fd42af7b907775 diff --git a/script/sent_proposal_report b/script/sent_proposal_report index ac2ac61..85e7c3b 100755 --- a/script/sent_proposal_report +++ b/script/sent_proposal_report @@ -42,14 +42,21 @@ file.close message = < -To: Leandro -Subject: Relatorio do Dialoga Segue em anexo o relatorio do Dialoga. MESSAGE_END -Net::SMTP.start('localhost') do |smtp| - smtp.send_message message, 'leandronunes@gmail.com', - 'leandro.santos@serpro.gov.br' +#Net::SMTP.start('localhost') do |smtp| +# smtp.send_message message, 'leandronunes@gmail.com', +# 'leandro.santos@serpro.gov.br' +#end + + +ActionMailer::Base.logger = Logger.new(STDOUT) +class Sender < ActionMailer::Base + def test(to, from) + mail to: to, from: from, + subject: "Relatorio do Dialoga", body: message + end end +Sender.test(['leandro.santos@serpro.gov.br', 'leandronunes@gmail.com'], 'dialoga@dialoga.gov.br').deliver -- libgit2 0.21.2