Vemuri, Lalitha
2007-Aug-06 17:55 UTC
[Cruisecontrolrb-users] email notification not working
Hi, Has anyone been able to get the email notification to work in cc.rb? I followed the instructions in the email plugin doc, but no success. Any idea what could be wrong? [error] [2007-08-06 13:35:18] Error sending e-mail - current server settings are : :address = "xxx.xx.xxx.xxx" :password = "xxx" :username = "lalitha" :domain = "xxxxx.com" [error] both user and secret are required Build 30574.6 FAILED [error] Error in plugin EmailNotifier: both user and secret are required This is my site config : ActionMailer::Base.smtp_settings = { :address => "xxx.xx.xxx.xxx", :domain => "djxxx.com", :port => 25, :domain => "djxxx.com" } In the java version of cc, I had to set the proxy port, how do you set this in cc.rb? Thanks Lalitha -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/cruisecontrolrb-users/attachments/20070806/25d1d92e/attachment.html
It works fine for me. Check your SMTP log on your mail server. On Aug 6, 2007, at 1:55 PM, Vemuri, Lalitha wrote:> Hi, > > > Has anyone been able to get the email notification to work in cc.rb? > > > I followed the instructions in the email plugin doc, but no > success. Any idea what could be wrong? > > > [error] [2007-08-06 13:35:18] Error sending e-mail - current > server settings are : > > :address = "xxx.xx.xxx.xxx" > > :password = "xxx" > > :username = "lalitha" > > :domain = "xxxxx.com" > > [error] both user and secret are required > > Build 30574.6 FAILED > > [error] Error in plugin EmailNotifier: both user and secret are > required > > > > This is my site config : > > > ActionMailer::Base.smtp_settings = { > > :address => "xxx.xx.xxx.xxx", > > :domain => "djxxx.com", > > :port => 25, > > :domain => "djxxx.com" > > } > > > In the java version of cc, I had to set the proxy port, how do you > set this in cc.rb? > > > Thanks > > Lalitha > > _______________________________________________ > Cruisecontrolrb-users mailing list > Cruisecontrolrb-users at rubyforge.org > http://rubyforge.org/mailman/listinfo/cruisecontrolrb-users-------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/cruisecontrolrb-users/attachments/20070806/33d172b8/attachment.html
sorry I just saw the error. On Aug 6, 2007, at 2:07 PM, Sean wrote:> It works fine for me. Check your SMTP log on your mail server. > > > On Aug 6, 2007, at 1:55 PM, Vemuri, Lalitha wrote: > >> Hi, >> >> >> Has anyone been able to get the email notification to work in cc.rb? >> >> >> I followed the instructions in the email plugin doc, but no >> success. Any idea what could be wrong? >> >> >> [error] [2007-08-06 13:35:18] Error sending e-mail - current >> server settings are : >> >> :address = "xxx.xx.xxx.xxx" >> >> :password = "xxx" >> >> :username = "lalitha" >> >> :domain = "xxxxx.com" >> >> [error] both user and secret are required >> >> Build 30574.6 FAILED >> >> [error] Error in plugin EmailNotifier: both user and secret are >> required >> >> >> >> This is my site config : >> >> >> ActionMailer::Base.smtp_settings = { >> >> :address => "xxx.xx.xxx.xxx", >> >> :domain => "djxxx.com", >> >> :port => 25, >> >> :domain => "djxxx.com" >> >> } >> >> >> In the java version of cc, I had to set the proxy port, how do you >> set this in cc.rb? >> >> >> Thanks >> >> Lalitha >> >> _______________________________________________ >> Cruisecontrolrb-users mailing list >> Cruisecontrolrb-users at rubyforge.org >> http://rubyforge.org/mailman/listinfo/cruisecontrolrb-users > > _______________________________________________ > Cruisecontrolrb-users mailing list > Cruisecontrolrb-users at rubyforge.org > http://rubyforge.org/mailman/listinfo/cruisecontrolrb-users-------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/cruisecontrolrb-users/attachments/20070806/1c671d3c/attachment.html
Vemuri, Lalitha
2007-Aug-06 20:00 UTC
[Cruisecontrolrb-users] email notification not working
Thanks for the reply. I had to set the proxy in the settings.xml in cc (non-ruby version of cc) for the html email to work. How do I configure the proxy for cc.rb? Thanks -----Original Message----- From: Sean [mailto:sean at densone.com] Sent: Monday, August 06, 2007 3:23 PM To: Sean Cc: Vemuri, Lalitha; cruisecontrolrb-users at rubyforge.org Subject: Re: [Cruisecontrolrb-users] email notification not working sorry I just saw the error. On Aug 6, 2007, at 2:07 PM, Sean wrote: It works fine for me. Check your SMTP log on your mail server. On Aug 6, 2007, at 1:55 PM, Vemuri, Lalitha wrote: Hi, Has anyone been able to get the email notification to work in cc.rb? I followed the instructions in the email plugin doc, but no success. Any idea what could be wrong? [error] [2007-08-06 13:35:18] Error sending e-mail - current server settings are : :address = "xxx.xx.xxx.xxx" :password = "xxx" :username = "lalitha" :domain = "xxxxx.com" [error] both user and secret are required Build 30574.6 FAILED [error] Error in plugin EmailNotifier: both user and secret are required This is my site config : ActionMailer::Base.smtp_settings = { :address => "xxx.xx.xxx.xxx", :domain => "djxxx.com", :port => 25, :domain => "djxxx.com" } In the java version of cc, I had to set the proxy port, how do you set this in cc.rb? Thanks Lalitha _______________________________________________ Cruisecontrolrb-users mailing list Cruisecontrolrb-users at rubyforge.org http://rubyforge.org/mailman/listinfo/cruisecontrolrb-users _______________________________________________ Cruisecontrolrb-users mailing list Cruisecontrolrb-users at rubyforge.org http://rubyforge.org/mailman/listinfo/cruisecontrolrb-users -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/cruisecontrolrb-users/attachments/20070806/5b328fe6/attachment-0001.html
think you are missing the password in your smtp settings. for example: ActionMailer::Base.smtp_settings = { :address => "smtp.gmail.com", :port => 587, :domain => "yourdomain.com", :authentication => :plain, :user_name => "yourgmailaccount", :password => "yourgmailpassword" } i had a strange problem with receiving an email through the app itself, but when ran it through a simple test i got the emails. think the problem has something to do with gmail, other people are seeing this too: http://www.stephenchu.com/2006/06/how-to-use-gmail-smtp-server-to-send.html (scroll to the bottom comments) don''t have time to look anymore into it tonight. here''s the working test: require File.dirname(__FILE__) + ''/../test_helper'' class MyEmailNotifierTest < Test::Unit::TestCase def setup ActionMailer::Base.deliveries = [] ActionMailer::Base.smtp_settings = { :address => "smtp.gmail.com", :port => 587, :domain => "mylaptop.com", :authentication => :plain, :user_name => "me at gmail.com", :password => "mypassword" } ActionMailer::Base.delivery_method = :smtp end def test_do_nothing_with_passing_build BuildMailer.send(:deliver_build_report, Build.new(nil, 5), ["rolf at thoughtworks.com", "rrussell at thoughtworks.com"], "rolf at builder.com", "some text 1", "some text 2") puts ''server settings ...'' puts ActionMailer::Base.server_settings puts ''mail ....'' puts ActionMailer::Base.deliveries[0].to_s assert_equal [], ActionMailer::Base.deliveries end end Sean <sean at densone.com> Sent by: cruisecontrolrb-users-bounces at rubyforge.org 08/06/2007 02:23 PM To Sean <sean at densone.com> cc cruisecontrolrb-users at rubyforge.org, "Vemuri, Lalitha" <Lalitha.Vemuri at dowjones.com> Subject Re: [Cruisecontrolrb-users] email notification not working sorry I just saw the error. On Aug 6, 2007, at 2:07 PM, Sean wrote: It works fine for me. Check your SMTP log on your mail server. On Aug 6, 2007, at 1:55 PM, Vemuri, Lalitha wrote: Hi, Has anyone been able to get the email notification to work in cc.rb? I followed the instructions in the email plugin doc, but no success. Any idea what could be wrong? [error] [2007-08-06 13:35:18] Error sending e-mail - current server settings are : :address = "xxx.xx.xxx.xxx" :password = "xxx" :username = "lalitha" :domain = "xxxxx.com" [error] both user and secret are required Build 30574.6 FAILED [error] Error in plugin EmailNotifier: both user and secret are required This is my site config : ActionMailer::Base.smtp_settings = { :address => "xxx.xx.xxx.xxx", :domain => "djxxx.com", :port => 25, :domain => "djxxx.com" } In the java version of cc, I had to set the proxy port, how do you set this in cc.rb? Thanks Lalitha _______________________________________________ Cruisecontrolrb-users mailing list Cruisecontrolrb-users at rubyforge.org http://rubyforge.org/mailman/listinfo/cruisecontrolrb-users _______________________________________________ Cruisecontrolrb-users mailing list Cruisecontrolrb-users at rubyforge.org http://rubyforge.org/mailman/listinfo/cruisecontrolrb-users _______________________________________________ Cruisecontrolrb-users mailing list Cruisecontrolrb-users at rubyforge.org http://rubyforge.org/mailman/listinfo/cruisecontrolrb-users -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/cruisecontrolrb-users/attachments/20070806/9ce0b5e6/attachment.html
Alexey Verkhovsky
2007-Aug-07 06:14 UTC
[Cruisecontrolrb-users] Fwd: email notification not working
On 8/6/07, Vemuri, Lalitha <Lalitha.Vemuri at dowjones.com> wrote:> Has anyone been able to get the email notification to work in cc.rb?Yes, many people have. Including email notification via GMail SMTP server. Your error message comes from net/smtp.rb (part of Ruby''s standard library), and from reading the source code, it probably means that you haven''t provided the SMTP password in your config. Which, indeed, seems to be the case. Does that make sense? -- Alex
Vemuri, Lalitha
2007-Aug-08 15:43 UTC
[Cruisecontrolrb-users] email notification not working
Thanks for all your responses. I am still getting the error below. I don''t want to use gmail, we have our own smtp server. How do I configure email to use non-gmail smtp server? -> "220 sb117inmr02.dowjones.net ESMTP\r\n" <- "EHLO www.dowjones.com\r\n" -> "250-sb117inmr02.dowjones.net\r\n" -> "250-8BITMIME\r\n" -> "250 SIZE 104857600\r\n" <- "STARTTLS\r\n" -> "500 #5.5.1 command not recognized\r\n" [error] [2007-08-08 11:37:29] Error sending e-mail - current server settings are : :user_name = "zzzz" :address = "xxx.xx.xxx.xxx" :password = "xxxxx" :domain = "www.dowjones.com" :port = 25 [error] 500 #5.5.1 command not recognized Build 30574.14 FAILED [error] Error in plugin EmailNotifier: 500 #5.5.1 command not recognized Thanks Lalitha -----Original Message----- From: Rolf Russell [mailto:RRussell at thoughtworks.com] Sent: Tuesday, August 07, 2007 12:20 AM To: cruisecontrolrb-users at rubyforge.org Cc: Vemuri, Lalitha; Sean Subject: Re: [Cruisecontrolrb-users] email notification not working think you are missing the password in your smtp settings. for example: ActionMailer::Base.smtp_settings = { :address => "smtp.gmail.com", :port => 587, :domain => "yourdomain.com", :authentication => :plain, :user_name => "yourgmailaccount", :password => "yourgmailpassword" } i had a strange problem with receiving an email through the app itself, but when ran it through a simple test i got the emails. think the problem has something to do with gmail, other people are seeing this too: http://www.stephenchu.com/2006/06/how-to-use-gmail-smtp-server-to-send.h tml (scroll to the bottom comments) don''t have time to look anymore into it tonight. here''s the working test: require File.dirname(__FILE__) + ''/../test_helper'' class MyEmailNotifierTest < Test::Unit::TestCase def setup ActionMailer::Base.deliveries = [] ActionMailer::Base.smtp_settings = { :address => "smtp.gmail.com", :port => 587, :domain => "mylaptop.com", :authentication => :plain, :user_name => "me at gmail.com", :password => "mypassword" } ActionMailer::Base.delivery_method = :smtp end def test_do_nothing_with_passing_build BuildMailer.send(:deliver_build_report, Build.new(nil, 5), ["rolf at thoughtworks.com", "rrussell at thoughtworks.com"], "rolf at builder.com", "some text 1", "some text 2") puts ''server settings ...'' puts ActionMailer::Base.server_settings puts ''mail ....'' puts ActionMailer::Base.deliveries[0].to_s assert_equal [], ActionMailer::Base.deliveries end end Sean <sean at densone.com> Sent by: cruisecontrolrb-users-bounces at rubyforge.org 08/06/2007 02:23 PM To Sean <sean at densone.com> cc cruisecontrolrb-users at rubyforge.org, "Vemuri, Lalitha" <Lalitha.Vemuri at dowjones.com> Subject Re: [Cruisecontrolrb-users] email notification not working sorry I just saw the error. On Aug 6, 2007, at 2:07 PM, Sean wrote: It works fine for me. Check your SMTP log on your mail server. On Aug 6, 2007, at 1:55 PM, Vemuri, Lalitha wrote: Hi, Has anyone been able to get the email notification to work in cc.rb? I followed the instructions in the email plugin doc, but no success. Any idea what could be wrong? [error] [2007-08-06 13:35:18] Error sending e-mail - current server settings are : :address = "xxx.xx.xxx.xxx" :password = "xxx" :username = "lalitha" :domain = "xxxxx.com" [error] both user and secret are required Build 30574.6 FAILED [error] Error in plugin EmailNotifier: both user and secret are required This is my site config : ActionMailer::Base.smtp_settings = { :address => "xxx.xx.xxx.xxx", :domain => "djxxx.com", :port => 25, :domain => "djxxx.com" } In the java version of cc, I had to set the proxy port, how do you set this in cc.rb? Thanks Lalitha _______________________________________________ Cruisecontrolrb-users mailing list Cruisecontrolrb-users at rubyforge.org http://rubyforge.org/mailman/listinfo/cruisecontrolrb-users _______________________________________________ Cruisecontrolrb-users mailing list Cruisecontrolrb-users at rubyforge.org http://rubyforge.org/mailman/listinfo/cruisecontrolrb-users _______________________________________________ Cruisecontrolrb-users mailing list Cruisecontrolrb-users at rubyforge.org http://rubyforge.org/mailman/listinfo/cruisecontrolrb-users -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/cruisecontrolrb-users/attachments/20070808/fadb426c/attachment-0001.html