Kyl*_*yle 5 gmail ruby-on-rails actionmailer
我正在尝试通过我的Gmail帐户发送电子邮件.我直接从rails指南中复制了代码,并且在我的终端中它说它正在发送消息但是,我发送给它的地址没有得到它.这是我在env.rb文件中的代码
config.action_mailer.deconfig.action_mailer.delivery_method = :smtp
config.action_mailer.smtp_settings = {
:address => "smtp.gmail.com",
:port => 587,
:domain => 'derp'
:user_name => 'derp.bot',
:password => 'derp42069',
:authentication => 'plain',
:enable_starttls_auto => true }
Run Code Online (Sandbox Code Playgroud)
在终端中,我收到以下消息:
Sent mail to derpviolin@gmail.com (20ms)
Date: Wed, 16 Feb 2011 23:09:54 -0800
From: derp.bot@gmail.com
To: derpviolin@gmail.com
Message-ID: <4d5cc9c2d6448_f88819dd6287289@dn0a203255.sunet.mail>
Subject: New Task
Mime-Version: 1.0
Content-Type: text/html;
charset=UTF-8
Content-Transfer-Encoding: 7bit
you suck
Rendered need_router/index.html.erb within layouts/application (2.1ms)
Completed 200 OK in 371ms (Views: 8.3ms)
Run Code Online (Sandbox Code Playgroud)
但是我发送给它的电子邮件没有收到消息.任何帮助将不胜感激.
| 归档时间: |
|
| 查看次数: |
16651 次 |
| 最近记录: |