提前感谢您在此问题上提供的任何帮助!
对于我的网站,用户应该在注册后收到一封激活电子邮件。有些电子邮件没有被接收,它们也不会进入垃圾邮件过滤器文件夹。
在查看了我的integral_mailer 日志后,我想我已经发现了问题所在。系统似乎拒绝了这些消息,因为没有反向 DNS 信息。
- 以下是康卡斯特在回复被拒绝的消息时所说的话:http: //postmaster.comcast.net/smtp-error-codes.php#554)
- 这是 AOL 不得不说的:http: //postmaster.aol.com/Postmaster.Errors.php#421dnsnr
- 我查看了这篇文章,但无法设置自己的反向 DNS:设置反向 DNS 记录
我对 RoR 有点陌生。您能指导我为我的邮件设置所需的反向 DNS 信息吗?
作为背景,这里是来自 user_mailer.rb 的详细信息:
class UserMailer < ActionMailer::Base
def signup_notification(user)
setup_email(user)
@subject += 'Please activate your new account'
@body[:url] = "http://website.com/activate/#{user.activation_code}"
end
来自integral_mailer.rb:
module IntegralMailer
def perform_delivery_integral_mailer(mail)
destinations = mail.destinations
mail.ready_to_send
helo = smtp_settings[:helo] || "localhost.localdomain"
ActionMailer::Base::INTEGRAL_MAILER_SERVER.send_mail(helo, mail.from, destinations, mail.encoded)
end
end