Commit e391f4b1e63082195737d7887078f7571a309283

Authored by Leandro Santos
1 parent 0f71b069

HOTSPOT: updating proposal script

Showing 1 changed file with 2 additions and 9 deletions   Show diff stats
script/sent_proposal_report
... ... @@ -2,7 +2,7 @@
2 2 require File.dirname(__FILE__) + '/../config/environment'
3 3 require 'net/smtp'
4 4  
5   -mails = ['leandronunes@gmail.com', 'leandro.santos@serpro.gov.br']
  5 +emails = ['leandronunes@gmail.com', 'leandro.santos@serpro.gov.br']
6 6  
7 7 puts 'Iniciando script'
8 8  
... ... @@ -39,18 +39,11 @@ end
39 39  
40 40 file.close
41 41  
42   -
43   -
44 42 message = <<MESSAGE_END
45 43  
46 44 Segue em anexo o relatorio do Dialoga.
47 45 MESSAGE_END
48 46  
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 47  
55 48 ActionMailer::Base.logger = Logger.new(STDOUT)
56 49 class Sender < ActionMailer::Base
... ... @@ -59,4 +52,4 @@ class Sender &lt; ActionMailer::Base
59 52 subject: "Relatorio do Dialoga", body: message
60 53 end
61 54 end
62   -Sender.test(['leandro.santos@serpro.gov.br', 'leandronunes@gmail.com'], 'dialoga@dialoga.gov.br').deliver
  55 +Sender.test(emails, 'dialoga@dialoga.gov.br').deliver
... ...