使用 RoR 发送电子邮件
我关注此网站了解如何使用 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
.......
但我的收件箱中没有收到任何电子邮件。有人可以告诉我这里出了什么问题吗...
I followed THIS site on how to send an email using RoR. After running the server and calling the method, it shows in the console:
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
.......
but I'm not getting any email in my inbox. Could someone please tell me what's the issue here...
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
我猜你还没有:
在你的development.rb 文件中。
I guess you haven't:
in your development.rb file.
前段时间我玩过 Ryan 在 Action Mailer 上的截屏视频 一切都很顺利。一探究竟!
Some time ago i`ve played around with Ryan screencast on Action Mailer and everything went just fine. Check it out!