<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0">
	<channel>
		<title><![CDATA[Rails Forum - Ruby on Rails Help and Discussion Forum - Sending E-mail Using Gmail SMTP]]></title>
		<link>http://railsforum.com/viewtopic.php?id=12875</link>
		<description><![CDATA[The most recent posts in Sending E-mail Using Gmail SMTP.]]></description>
		<lastBuildDate>Tue, 12 Feb 2013 10:16:02 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: Sending E-mail Using Gmail SMTP]]></title>
			<link>http://railsforum.com/viewtopic.php?pid=159351#p159351</link>
			<description><![CDATA[<p>Hi,</p><p>I did some research before and I was able to make it work. I documented it in my blog for my future reference, you may use this as your reference too:</p><p>For Rails 2.3<br /><a href="http://www.ajibanda.com/2012/08/using-gmail-to-send-email-on-ruby-on.html">http://www.ajibanda.com/2012/08/using-g &#133; by-on.html</a></p><p>For Rails 3.2<br /><a href="http://www.ajibanda.com/2012/12/using-gmail-to-send-email-on-ruby-on-rails-3.2.html">http://www.ajibanda.com/2012/12/using-g &#133; s-3.2.html</a></p><p>I was able to use gmail for this all my email related process with this codes.</p>]]></description>
			<author><![CDATA[dummy@example.com (ajibanda)]]></author>
			<pubDate>Tue, 12 Feb 2013 10:16:02 +0000</pubDate>
			<guid>http://railsforum.com/viewtopic.php?pid=159351#p159351</guid>
		</item>
		<item>
			<title><![CDATA[Re: Sending E-mail Using Gmail SMTP]]></title>
			<link>http://railsforum.com/viewtopic.php?pid=159350#p159350</link>
			<description><![CDATA[<p>I was wondering if we can use Gmail for all email notifications from the Web2Project system. I went through quite a many forum to set this up and looks like it is still not working.<br />I keep getting fsocketopen message and it asks me to check line 122.<br />Not sure what am I missing.<br />Any alternative idea about making email notifications work will be much appreciated.<br /><a href="http://www.gotapparel.com/m-62-harvard-square.aspx">harvard square shirts</a></p>]]></description>
			<author><![CDATA[dummy@example.com (notifier)]]></author>
			<pubDate>Tue, 12 Feb 2013 10:11:01 +0000</pubDate>
			<guid>http://railsforum.com/viewtopic.php?pid=159350#p159350</guid>
		</item>
		<item>
			<title><![CDATA[Re: Sending E-mail Using Gmail SMTP]]></title>
			<link>http://railsforum.com/viewtopic.php?pid=148013#p148013</link>
			<description><![CDATA[<p>I&#039;ve read that using GMail for email features, you would need a valid domain name. What if I just want to use it for localhost during the development? would it work? how?</p><p>Basically, what I want is something similar to what ndgiang84 has listed above, does it work? </p><p>Thanks in advance!</p>]]></description>
			<author><![CDATA[dummy@example.com (ajibanda)]]></author>
			<pubDate>Mon, 19 Dec 2011 06:49:55 +0000</pubDate>
			<guid>http://railsforum.com/viewtopic.php?pid=148013#p148013</guid>
		</item>
		<item>
			<title><![CDATA[Re: Sending E-mail Using Gmail SMTP]]></title>
			<link>http://railsforum.com/viewtopic.php?pid=146644#p146644</link>
			<description><![CDATA[<p>I am having exactly the same issue. I run Spiceworks on a Windows 2003 Server R2 and am trying to setup email support. On smtp server field I tried both hostname and IP address of our mail server (a linux box). I am pretty sure values are correct, I can ping the mail server both by hostname and IP address from the Spiceworks server. But still, I get &quot;SMTP Error: execution expired&quot; when click on &quot;Save&quot; button after a dozen of seconds.</p>]]></description>
			<author><![CDATA[dummy@example.com (zuerst)]]></author>
			<pubDate>Thu, 10 Nov 2011 13:41:57 +0000</pubDate>
			<guid>http://railsforum.com/viewtopic.php?pid=146644#p146644</guid>
		</item>
		<item>
			<title><![CDATA[Re: Sending E-mail Using Gmail SMTP]]></title>
			<link>http://railsforum.com/viewtopic.php?pid=129583#p129583</link>
			<description><![CDATA[<p>Hello,</p><p>I have these settings in my environment: </p><div class="codebox"><pre><code>ActionMailer::Base.smtp_settings = {
  :address  =&gt; &quot;smtp.gmail.com&quot;,
  :port     =&gt; 587,
  :domain   =&gt; &quot;gmail.com&quot;,
  :authentication  =&gt; :plain,
  #:enable_starttls_auto =&gt; true,
  :user_name  =&gt; &quot;myemail@gmail.com&quot;,
  :password  =&gt; &quot;mypassword&quot;
}</code></pre></div><p>but it keeps showing this when I try to send email:</p><div class="codebox"><pre><code>error =&gt; execution expired</code></pre></div><p>I have logged in to gmail using above account, it&#039;s ok. And my site is now hosted on Bluehost.</p><p>Any ideas?</p>]]></description>
			<author><![CDATA[dummy@example.com (ndgiang84)]]></author>
			<pubDate>Tue, 17 Aug 2010 22:33:01 +0000</pubDate>
			<guid>http://railsforum.com/viewtopic.php?pid=129583#p129583</guid>
		</item>
		<item>
			<title><![CDATA[Re: Sending E-mail Using Gmail SMTP]]></title>
			<link>http://railsforum.com/viewtopic.php?pid=109182#p109182</link>
			<description><![CDATA[<p>Does that patch you put in for ActionMailerTLS allow it to work for Ruby 1.9.1 runing Rails 2.3.3? Should work out of the package for this setup but patently doesn&#039;t (at least for me).</p>]]></description>
			<author><![CDATA[dummy@example.com (metasoarous)]]></author>
			<pubDate>Mon, 28 Sep 2009 01:10:20 +0000</pubDate>
			<guid>http://railsforum.com/viewtopic.php?pid=109182#p109182</guid>
		</item>
		<item>
			<title><![CDATA[Re: Sending E-mail Using Gmail SMTP]]></title>
			<link>http://railsforum.com/viewtopic.php?pid=105165#p105165</link>
			<description><![CDATA[<p>Can anyone post the working code? It would be nice to see the complete working solution.</p><p>Thanks</p>]]></description>
			<author><![CDATA[dummy@example.com (markp84601)]]></author>
			<pubDate>Thu, 30 Jul 2009 19:22:31 +0000</pubDate>
			<guid>http://railsforum.com/viewtopic.php?pid=105165#p105165</guid>
		</item>
		<item>
			<title><![CDATA[Re: Sending E-mail Using Gmail SMTP]]></title>
			<link>http://railsforum.com/viewtopic.php?pid=101212#p101212</link>
			<description><![CDATA[<div class="quotebox"><cite>fattah.uign wrote:</cite><blockquote><p>action_mailer_tls has a problem with ruby 1.8.7. The code you posted in smtp_tls.rb produces <br />ArgumentError: wrong number of arguments (3 for 2) from <br />Line9. check_auth_args user, secret, authtype if user or secret.</p><p>You can get fix for this issue by removing authtype parameter from check_auth_args method call</p><p>&nbsp; &nbsp; #check_auth_args user, secret, authtype if user or secret # This is for ruby 1.8.6<br />&nbsp; &nbsp; check_auth_args user, secret if user or secret # This is for ruby 1.8.7</p><p>Details from <a href="http://blog.inspired.no/smtp-error-while-using-gmail-in-rails-271">http://blog.inspired.no/smtp-error-whil &#133; -rails-271</a></p></blockquote></div><p>I&#039;ve patched ActionMailerTLS so it&#039;ll work on 1.8.6 or 1.8.7. You can check it out at <a href="http://github.com/hardbap/action_mailer_tls/">http://github.com/hardbap/action_mailer_tls/</a></p><p>*** Please Note ***<br />If you&#039;re on Ruby 1.8.7 and Rails &gt;= 2.2.1 you should be using the built in support.</p>]]></description>
			<author><![CDATA[dummy@example.com (hardbap)]]></author>
			<pubDate>Thu, 18 Jun 2009 16:13:56 +0000</pubDate>
			<guid>http://railsforum.com/viewtopic.php?pid=101212#p101212</guid>
		</item>
		<item>
			<title><![CDATA[Re: Sending E-mail Using Gmail SMTP]]></title>
			<link>http://railsforum.com/viewtopic.php?pid=100070#p100070</link>
			<description><![CDATA[<p>action_mailer_tls has a problem with ruby 1.8.7. The code you posted in smtp_tls.rb produces <br />ArgumentError: wrong number of arguments (3 for 2) from <br />Line9. check_auth_args user, secret, authtype if user or secret.</p><p>You can get fix for this issue by removing authtype parameter from check_auth_args method call</p><p>&nbsp; &nbsp; #check_auth_args user, secret, authtype if user or secret # This is for ruby 1.8.6<br />&nbsp; &nbsp; check_auth_args user, secret if user or secret # This is for ruby 1.8.7</p><p>Details from <a href="http://blog.inspired.no/smtp-error-while-using-gmail-in-rails-271">http://blog.inspired.no/smtp-error-whil &#133; -rails-271</a></p>]]></description>
			<author><![CDATA[dummy@example.com (fattah.uign)]]></author>
			<pubDate>Mon, 08 Jun 2009 05:52:11 +0000</pubDate>
			<guid>http://railsforum.com/viewtopic.php?pid=100070#p100070</guid>
		</item>
		<item>
			<title><![CDATA[Re: Sending E-mail Using Gmail SMTP]]></title>
			<link>http://railsforum.com/viewtopic.php?pid=64635#p64635</link>
			<description><![CDATA[<p>That doesn&#039;t really look related to sending mail.&nbsp; It seems to be an issue with the ProxyJudge script that you&#039;re using.&nbsp; ProxyJudges are unfamiliar territory to me, but based on a few minutes of Googling, I&#039;m guessing that you&#039;re using azenv.php to retrieve data about the client for whatever purpose.&nbsp; If this is the case, perhaps the script is not setup/configured properly.&nbsp; A permissions issue maybe...&nbsp; I dunno.</p>]]></description>
			<author><![CDATA[dummy@example.com (brentmc79)]]></author>
			<pubDate>Tue, 10 Jun 2008 20:26:08 +0000</pubDate>
			<guid>http://railsforum.com/viewtopic.php?pid=64635#p64635</guid>
		</item>
		<item>
			<title><![CDATA[Re: Sending E-mail Using Gmail SMTP]]></title>
			<link>http://railsforum.com/viewtopic.php?pid=64633#p64633</link>
			<description><![CDATA[<p>I get this error message when trying to send mail, only in production mode though.</p><p>Did anybody figure this out?<br />Thanks</p><p><pre name="code" class="ruby:nogutter">ActionController::RoutingError (No route matches &quot;/AZenv/azenv.php&quot; with {:method=&gt;:get}):<br />&nbsp; &nbsp; /vendor/rails/actionpack/lib/action_controller/routing/recognition_optimisation.rb:67:in `recognize_path&#039;<br />&nbsp; &nbsp; /vendor/rails/actionpack/lib/action_controller/routing/route_set.rb:384:in `recognize&#039;<br />&nbsp; &nbsp; /vendor/rails/actionpack/lib/action_controller/dispatcher.rb:163:in `handle_request&#039;<br />&nbsp; &nbsp; /vendor/rails/actionpack/lib/action_controller/dispatcher.rb:105:in `dispatch&#039;<br />&nbsp; &nbsp; /vendor/rails/actionpack/lib/action_controller/dispatcher.rb:102:in `synchronize&#039;<br />&nbsp; &nbsp; /vendor/rails/actionpack/lib/action_controller/dispatcher.rb:102:in `dispatch&#039;<br />&nbsp; &nbsp; /vendor/rails/actionpack/lib/action_controller/dispatcher.rb:118:in `dispatch_cgi&#039;<br />&nbsp; &nbsp; /vendor/rails/actionpack/lib/action_controller/dispatcher.rb:11:in `dispatch&#039;<br />&nbsp; &nbsp; /usr/lib/ruby/gems/1.8/gems/mongrel-1.1.5/bin/../lib/mongrel/rails.rb:76:in `process&#039;<br />&nbsp; &nbsp; /usr/lib/ruby/gems/1.8/gems/mongrel-1.1.5/bin/../lib/mongrel/rails.rb:74:in `synchronize&#039;<br />&nbsp; &nbsp; /usr/lib/ruby/gems/1.8/gems/mongrel-1.1.5/bin/../lib/mongrel/rails.rb:74:in `process&#039;<br />&nbsp; &nbsp; /usr/lib/ruby/gems/1.8/gems/mongrel-1.1.5/bin/../lib/mongrel.rb:159:in `process_client&#039;<br />&nbsp; &nbsp; /usr/lib/ruby/gems/1.8/gems/mongrel-1.1.5/bin/../lib/mongrel.rb:158:in `each&#039;<br />&nbsp; &nbsp; /usr/lib/ruby/gems/1.8/gems/mongrel-1.1.5/bin/../lib/mongrel.rb:158:in `process_client&#039;<br />&nbsp; &nbsp; /usr/lib/ruby/gems/1.8/gems/mongrel-1.1.5/bin/../lib/mongrel.rb:285:in `run&#039;<br />&nbsp; &nbsp; /usr/lib/ruby/gems/1.8/gems/mongrel-1.1.5/bin/../lib/mongrel.rb:285:in `initialize&#039;<br />&nbsp; &nbsp; /usr/lib/ruby/gems/1.8/gems/mongrel-1.1.5/bin/../lib/mongrel.rb:285:in `new&#039;<br />&nbsp; &nbsp; /usr/lib/ruby/gems/1.8/gems/mongrel-1.1.5/bin/../lib/mongrel.rb:285:in `run&#039;<br />&nbsp; &nbsp; /usr/lib/ruby/gems/1.8/gems/mongrel-1.1.5/bin/../lib/mongrel.rb:268:in `initialize&#039;<br />&nbsp; &nbsp; /usr/lib/ruby/gems/1.8/gems/mongrel-1.1.5/bin/../lib/mongrel.rb:268:in `new&#039;</pre></p>]]></description>
			<author><![CDATA[dummy@example.com (haries)]]></author>
			<pubDate>Tue, 10 Jun 2008 19:56:18 +0000</pubDate>
			<guid>http://railsforum.com/viewtopic.php?pid=64633#p64633</guid>
		</item>
		<item>
			<title><![CDATA[Re: Sending E-mail Using Gmail SMTP]]></title>
			<link>http://railsforum.com/viewtopic.php?pid=64132#p64132</link>
			<description><![CDATA[<p>I&#039;m having a similar problem, in that everything works great in my local development environment, but when I try in the production environment the emails never get sent, and I see something like this in the log:<br /><pre name="code" class="ruby:nogutter">-&gt; &quot;220 mx.google.com ESMTP f45sm9565579pyh.24\r\n&quot;<br />&lt;- &quot;EHLO \r\n&quot;<br />-&gt; &quot;250-mx.google.com at your service, [67.207.129.71]\r\n&quot;<br />-&gt; &quot;250-SIZE 28311552\r\n&quot;<br />-&gt; &quot;250-8BITMIME\r\n&quot;<br />-&gt; &quot;250-STARTTLS\r\n&quot;<br />-&gt; &quot;250 ENHANCEDSTATUSCODES\r\n&quot;<br />&lt;- &quot;STARTTLS\r\n&quot;<br />-&gt; &quot;220 2.0.0 Ready to start TLS\r\n&quot;<br />&lt;- &quot;EHLO \r\n&quot;<br />-&gt; &quot;250-mx.google.com at your service, [67.207.129.71]\r\n&quot;<br />-&gt; &quot;250-SIZE 28311552\r\n&quot;<br />-&gt; &quot;250-8BITMIME\r\n&quot;<br />-&gt; &quot;250-AUTH LOGIN PLAIN\r\n&quot;<br />-&gt; &quot;250 ENHANCEDSTATUSCODES\r\n&quot;<br />&lt;- &quot;AUTH PLAIN AG5vcmVwbHlAYWN0cy1hcy1ibG9nci5jb20AcGFzc3dvcmQ=\r\n&quot;<br />-&gt; &quot;535-5.7.1 Username and Password not accepted. Learn more at&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;\r\n&quot;<br />-&gt; &quot;535 5.7.1 <a href="http://mail.google.com/support/bin/answer.py?answer=14257">http://mail.google.com/support/bin/answ &#133; swer=14257</a> f45sm9565579pyh.24\r\n&quot;</pre><br />Also, here&#039;s my mailer.yml file with username/password changed:<br /><pre name="code" class="ruby:nogutter">---<br />&nbsp; :address: smtp.gmail.com<br />&nbsp; :port: 587<br />&nbsp; :user_name: blah@blah.com<br />&nbsp; :password: blah<br />&nbsp; :authentication: :plain</pre></p>]]></description>
			<author><![CDATA[dummy@example.com (brentmc79)]]></author>
			<pubDate>Thu, 05 Jun 2008 06:54:58 +0000</pubDate>
			<guid>http://railsforum.com/viewtopic.php?pid=64132#p64132</guid>
		</item>
		<item>
			<title><![CDATA[Re: Sending E-mail Using Gmail SMTP]]></title>
			<link>http://railsforum.com/viewtopic.php?pid=63527#p63527</link>
			<description><![CDATA[<p>Does the code from the log below mean that it worked? I&#039;m not receiving the email but from my noobish eye, it looks like it went through? I&#039;m in development mode if that makes a difference.</p><p>Thank you<br />Jason</p><p>Sent mail:<br /> Date: Thu, 29 May 2008 11:24:25 -0700<br />From: jason@portlandonrails.com<br />To: schmidtjra@msn.com<br />Subject: IWalkTheVine - Your password has been reset<br />Mime-Version: 1.0<br />Content-Type: text/plain; charset=utf-8</p><p>schmidtjra, Your password has been reset<br />-&gt; &quot;250-mx.google.com at your service, [74.92.167.130]\r\n&quot;<br />-&gt; &quot;250-SIZE 28311552\r\n&quot;<br />-&gt; &quot;250-8BITMIME\r\n&quot;<br />-&gt; &quot;250-AUTH LOGIN PLAIN\r\n&quot;<br />-&gt; &quot;250 ENHANCEDSTATUSCODES\r\n&quot;<br />&lt;- &quot;AUTH PLAIN AGphc29uQHBvcnRsYW5kb25yYWlscy5jb20AanM2OTY5Njk=\r\n&quot;<br />-&gt; &quot;235 2.7.0 Accepted\r\n&quot;<br />&lt;- &quot;MAIL FROM:&lt;jason@portlandonrails.com&gt;\r\n&quot;<br />-&gt; &quot;250 2.1.0 OK\r\n&quot;<br />&lt;- &quot;RCPT TO:&lt;schmidtjra@msn.com&gt;\r\n&quot;<br />-&gt; &quot;250 2.1.5 OK\r\n&quot;<br />&lt;- &quot;DATA\r\n&quot;<br />-&gt; &quot;354 Go ahead\r\n&quot;<br />writing message from String<br />wrote 319 bytes<br />-&gt; &quot;250 2.0.0 OK 1212085467 z20sm1996179pod.11\r\n&quot;<br />&lt;- &quot;QUIT\r\n&quot;<br />-&gt; &quot;221 2.0.0 mx.google.com closing connection z20sm1996179pod.11\r\n&quot;<br />&nbsp; SQL (0.000254)&nbsp; &nbsp;COMMIT<br />Redirected to http://localhost:3000/login<br />Completed in 1.90491 (0 reqs/sec) | DB: 0.00681 (0%) | 302 Found [http://localhost/passwords/update/72fca0b53a3c367af2d1940d58f3f294dea80959]</p>]]></description>
			<author><![CDATA[dummy@example.com (schmidtjra)]]></author>
			<pubDate>Thu, 29 May 2008 18:28:05 +0000</pubDate>
			<guid>http://railsforum.com/viewtopic.php?pid=63527#p63527</guid>
		</item>
		<item>
			<title><![CDATA[Re: Sending E-mail Using Gmail SMTP]]></title>
			<link>http://railsforum.com/viewtopic.php?pid=62710#p62710</link>
			<description><![CDATA[<p>I&#039;m using the action mailer tls plugin and it works in development mode, but not in production mode. I would debug this myself, but when I look in the production log file (assuming this log file keeps track of ALL the same info as the development log), nothing appears in it. It&#039;s like the Mailer.deliver_XXX function never even got called. (in the development log, I&#039;ll see the email, as well as a bunch of random code that looks like it&#039;s communicating with google MX) My production project is mysql and the development is sqlite. Might that be the problem??? Anyone ever experience this?</p><p>My development is on my local machine, and the production is on the slicehost server. Any help would be much appreciated!</p>]]></description>
			<author><![CDATA[dummy@example.com (jerk_circus)]]></author>
			<pubDate>Tue, 20 May 2008 19:36:11 +0000</pubDate>
			<guid>http://railsforum.com/viewtopic.php?pid=62710#p62710</guid>
		</item>
		<item>
			<title><![CDATA[Re: Sending E-mail Using Gmail SMTP]]></title>
			<link>http://railsforum.com/viewtopic.php?pid=60710#p60710</link>
			<description><![CDATA[<p>Hi,<br />&nbsp; &nbsp;For me the mails are being delivered correctly... But i have one problem in &quot;From Address&quot; of the email which i receive...&nbsp; i.e, i want to get the &quot;From Address&quot; as what i have given in &quot;from&quot; field while writing action mailer code in model.&nbsp; But at present its taking &quot;From Address&quot; as what i have mentioned in the environment.rb file (which is in username field).... Pls Help me.....</p><br /><p>Regards,<br />Yoganand</p>]]></description>
			<author><![CDATA[dummy@example.com (yogananda.g)]]></author>
			<pubDate>Fri, 25 Apr 2008 04:24:05 +0000</pubDate>
			<guid>http://railsforum.com/viewtopic.php?pid=60710#p60710</guid>
		</item>
	</channel>
</rss>
