我关注了 THIS 网站,了解如何使用 RoR 发送电子邮件。运行服务器并调用该方法后,它会显示在控制台中:
Rendered user_mailer/welcome_email.html.erb (1.0ms)
Rendered user_mailer/welcome_email.text.erb (1.0ms)
Sent mail to [email protected] (1128ms)
Date: Sun, 18 Sep 2011 13:44:49 +0530
From: [email protected]
To: [email protected]
Message-ID: <[email protected]>
Subject: Welcome to My Awesome Site
Mime-Version: 1.0
Content-Type: multipart/alternative;
boundary="--==_mimepart_4e75a878dffeda646659d";
charset=UTF-8
Content-Transfer-Encoding: 7bit
.......
但我的收件箱中没有收到任何电子邮件。有人可以告诉我这里出了什么问题吗...
我猜你还没有:
config.action_mailer.perform_deliveries = true
在你的development.rb文件中。
前一段时间,我在 Action Mailer 上玩过 Ryan 截屏视频,一切都很顺利。看看吧!