<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
  <channel>
    <title>mydavidowen</title>
    <link>https://ruby-china.org/mydavidowen</link>
    <description/>
    <language>en-us</language>
    <item>
      <title>邮件发送失败</title>
      <description>&lt;p&gt;新手。看 agile web development with rails 3.2 时，卡在了发邮件的这一章，百度，google 无果，求助！&lt;/p&gt;

&lt;p&gt;environment 里的设置：&lt;/p&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;config.action_mailer.delivery_method = :smtp
config.action_mailer.smtp_settings = {
    address: "smtp.gmail.com",
    port: 587,
    domain: "gmail.com",
    authentication: "plain",
    user_name: "username@gmail.com",
    password: "password",
    enable_starttls_auto: true
}
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;log 报错：&lt;/p&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Completed 500 Internal Server Error in 2498ms

Errno::ECONNREFUSED (No connection could be made because the target machine actively refused it. - connect(2)):
  app/controllers/orders_controller.rb:60:in `block in create'
  app/controllers/orders_controller.rb:56:in `create'
&lt;/code&gt;&lt;/pre&gt;</description>
      <author>mydavidowen</author>
      <pubDate>Sat, 11 Aug 2012 20:44:58 +0800</pubDate>
      <link>https://ruby-china.org/topics/4875</link>
      <guid>https://ruby-china.org/topics/4875</guid>
    </item>
  </channel>
</rss>
