<br><font size=2 face="sans-serif">think you are missing the password in
your smtp settings. &nbsp; for example:</font>
<br>
<br><font size=2 face="sans-serif">ActionMailer::Base.smtp_settings = {</font>
<br><font size=2 face="sans-serif">&nbsp; &nbsp;:address =&gt; &nbsp; &nbsp;
&nbsp; &nbsp;&quot;smtp.gmail.com&quot;,</font>
<br><font size=2 face="sans-serif">&nbsp; &nbsp;:port =&gt; &nbsp; &nbsp;
&nbsp; &nbsp; &nbsp; 587,</font>
<br><font size=2 face="sans-serif">&nbsp; &nbsp;:domain =&gt; &nbsp; &nbsp;
&nbsp; &nbsp; &quot;yourdomain.com&quot;,</font>
<br><font size=2 face="sans-serif">&nbsp; &nbsp;:authentication =&gt; :plain,</font>
<br><font size=2 face="sans-serif">&nbsp; &nbsp;:user_name =&gt; &nbsp;
&nbsp; &nbsp;&quot;yourgmailaccount&quot;,</font>
<br><font size=2 face="sans-serif">&nbsp; &nbsp;:password =&gt; &nbsp;
&nbsp; &nbsp; &quot;yourgmailpassword&quot;</font>
<br><font size=2 face="sans-serif">}</font>
<br>
<br><font size=2 face="sans-serif">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. &nbsp;think the problem has something to do with gmail,
other people are seeing this too: &nbsp;http://www.stephenchu.com/2006/06/how-to-use-gmail-smtp-server-to-send.html
&nbsp; (scroll to the bottom comments)</font>
<br><font size=2 face="sans-serif">don't have time to look anymore into
it tonight. &nbsp;here's the working test:</font>
<br>
<br><font size=2 face="sans-serif">require File.dirname(__FILE__) + '/../test_helper'</font>
<br>
<br><font size=2 face="sans-serif">class MyEmailNotifierTest &lt; Test::Unit::TestCase</font>
<br><font size=2 face="sans-serif">&nbsp; </font>
<br><font size=2 face="sans-serif">&nbsp; def setup</font>
<br><font size=2 face="sans-serif">&nbsp; &nbsp; ActionMailer::Base.deliveries
= []</font>
<br>
<br><font size=2 face="sans-serif">&nbsp; &nbsp; ActionMailer::Base.smtp_settings
= {</font>
<br><font size=2 face="sans-serif">&nbsp; &nbsp; &nbsp; :address =&gt;
&nbsp; &nbsp; &nbsp; &nbsp;&quot;smtp.gmail.com&quot;,</font>
<br><font size=2 face="sans-serif">&nbsp; &nbsp; &nbsp; :port =&gt; &nbsp;
&nbsp; &nbsp; &nbsp; &nbsp; 587,</font>
<br><font size=2 face="sans-serif">&nbsp; &nbsp; &nbsp; :domain =&gt; &nbsp;
&nbsp; &nbsp; &nbsp; &quot;mylaptop.com&quot;,</font>
<br><font size=2 face="sans-serif">&nbsp; &nbsp; &nbsp; :authentication
=&gt; :plain,</font>
<br><font size=2 face="sans-serif">&nbsp; &nbsp; &nbsp; :user_name =&gt;
&nbsp; &nbsp; &nbsp;&quot;me@gmail.com&quot;,</font>
<br><font size=2 face="sans-serif">&nbsp; &nbsp; &nbsp; :password =&gt;
&nbsp; &nbsp; &nbsp; &quot;mypassword&quot;</font>
<br><font size=2 face="sans-serif">&nbsp; &nbsp; }</font>
<br><font size=2 face="sans-serif">&nbsp; &nbsp; </font>
<br><font size=2 face="sans-serif">&nbsp; &nbsp; ActionMailer::Base.delivery_method
= :smtp</font>
<br><font size=2 face="sans-serif">&nbsp; end</font>
<br>
<br><font size=2 face="sans-serif">&nbsp; def test_do_nothing_with_passing_build</font>
<br><font size=2 face="sans-serif">&nbsp; &nbsp; BuildMailer.send(:deliver_build_report,
Build.new(nil, 5), [&quot;rolf@thoughtworks.com&quot;, &quot;rrussell@thoughtworks.com&quot;],
&quot;rolf@builder.com&quot;, &quot;some text 1&quot;, &quot;some text
2&quot;)</font>
<br><font size=2 face="sans-serif">&nbsp; &nbsp; </font>
<br><font size=2 face="sans-serif">&nbsp; &nbsp; puts 'server settings
...'</font>
<br><font size=2 face="sans-serif">&nbsp; &nbsp; puts ActionMailer::Base.server_settings</font>
<br><font size=2 face="sans-serif">&nbsp; &nbsp; </font>
<br><font size=2 face="sans-serif">&nbsp; &nbsp; puts 'mail ....'</font>
<br><font size=2 face="sans-serif">&nbsp; &nbsp; puts ActionMailer::Base.deliveries[0].to_s</font>
<br><font size=2 face="sans-serif">&nbsp; &nbsp; assert_equal [], ActionMailer::Base.deliveries</font>
<br><font size=2 face="sans-serif">&nbsp; end</font>
<br><font size=2 face="sans-serif">end</font>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<table width=100%>
<tr valign=top>
<td width=40%><font size=1 face="sans-serif"><b>Sean &lt;sean@densone.com&gt;</b>
</font>
<br><font size=1 face="sans-serif">Sent by: cruisecontrolrb-users-bounces@rubyforge.org</font>
<p><font size=1 face="sans-serif">08/06/2007 02:23 PM</font>
<td width=59%>
<table width=100%>
<tr valign=top>
<td>
<div align=right><font size=1 face="sans-serif">To</font></div>
<td><font size=1 face="sans-serif">Sean &lt;sean@densone.com&gt;</font>
<tr valign=top>
<td>
<div align=right><font size=1 face="sans-serif">cc</font></div>
<td><font size=1 face="sans-serif">cruisecontrolrb-users@rubyforge.org,
&quot;Vemuri, &nbsp; &nbsp; &nbsp; &nbsp;Lalitha&quot; &lt;Lalitha.Vemuri@dowjones.com&gt;</font>
<tr valign=top>
<td>
<div align=right><font size=1 face="sans-serif">Subject</font></div>
<td><font size=1 face="sans-serif">Re: [Cruisecontrolrb-users] email notification
not working</font></table>
<br>
<table>
<tr valign=top>
<td>
<td></table>
<br></table>
<br>
<br>
<br><font size=3>sorry &nbsp;I just saw the error.&nbsp;</font>
<br><font size=3>On Aug 6, 2007, at 2:07 PM, Sean wrote:</font>
<br>
<br><font size=3>It works fine for me. Check your SMTP log on your mail
server. &nbsp;</font>
<br>
<br>
<br><font size=3>On Aug 6, 2007, at 1:55 PM, Vemuri, Lalitha wrote:</font>
<br>
<p><font size=2 face="Arial">Hi,</font>
<p><font size=2 face="Arial">&nbsp;</font>
<p><font size=2 face="Arial">Has anyone been able to get the email notification
to work in cc.rb? </font>
<p><font size=2 face="Arial">&nbsp;</font>
<p><font size=2 face="Arial">I followed the instructions in the email plugin
doc, but no success. Any idea what could be wrong?</font>
<p><font size=2 face="Arial">&nbsp;</font>
<p><font size=2 face="Arial">&nbsp;[error] [2007-08-06 13:35:18] Error
sending e-mail - current server settings are :</font>
<p><font size=2 face="Arial">&nbsp; :address = &quot;xxx.xx.xxx.xxx&quot;</font>
<p><font size=2 face="Arial">&nbsp; :password = &quot;xxx&quot;</font>
<p><font size=2 face="Arial">&nbsp; :username = &quot;lalitha&quot;</font>
<p><font size=2 face="Arial">&nbsp; :domain = &quot;xxxxx.com&quot;</font>
<p><font size=2 face="Arial">[error] both user and secret are required</font>
<p><font size=2 face="Arial">Build 30574.6 FAILED</font>
<p><font size=2 face="Arial">[error] Error in plugin EmailNotifier: both
user and secret are required</font>
<p><font size=2 face="Arial">&nbsp;</font>
<br><font size=2 face="Arial">&nbsp;</font>
<p><font size=2 face="Arial">This is my site config :</font>
<p><font size=2 face="Arial">&nbsp;</font>
<p><font size=2 face="Arial">ActionMailer::Base.smtp_settings = {</font>
<p><font size=2 face="Arial">&nbsp;:address =&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
&quot;xxx.xx.xxx.xxx&quot;,</font>
<p><font size=2 face="Arial">&nbsp;:domain =&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
&quot;djxxx.com&quot;,</font>
<p><font size=2 face="Arial">&nbsp;:port =&gt; 25,</font>
<p><font size=2 face="Arial">&nbsp;:domain =&gt; &quot;djxxx.com&quot;</font>
<p><font size=2 face="Arial">&nbsp;}</font>
<p><font size=2 face="Arial">&nbsp;</font>
<p><font size=2 face="Arial">In the java version of cc, I had to set the
proxy port, how do you set this in cc.rb?</font>
<p><font size=2 face="Arial">&nbsp;</font>
<p><font size=3 face="Times New Roman">Thanks</font>
<p><font size=3 face="Times New Roman">Lalitha</font>
<br><font size=3>_______________________________________________</font>
<br><font size=3>Cruisecontrolrb-users mailing list</font>
<br><a href="mailto:Cruisecontrolrb-users@rubyforge.org"><font size=3 color=blue><u>Cruisecontrolrb-users@rubyforge.org</u></font></a>
<br><a href="http://rubyforge.org/mailman/listinfo/cruisecontrolrb-users"><font size=3 color=blue><u>http://rubyforge.org/mailman/listinfo/cruisecontrolrb-users</u></font></a>
<br>
<br><font size=3>_______________________________________________</font>
<br><font size=3>Cruisecontrolrb-users mailing list</font>
<br><a href="mailto:Cruisecontrolrb-users@rubyforge.org"><font size=3 color=blue><u>Cruisecontrolrb-users@rubyforge.org</u></font></a>
<br><a href="http://rubyforge.org/mailman/listinfo/cruisecontrolrb-users"><font size=3 color=blue><u>http://rubyforge.org/mailman/listinfo/cruisecontrolrb-users</u></font></a>
<br><tt><font size=2>_______________________________________________<br>
Cruisecontrolrb-users mailing list<br>
Cruisecontrolrb-users@rubyforge.org<br>
http://rubyforge.org/mailman/listinfo/cruisecontrolrb-users<br>
</font></tt>
<br>