この問題であなたが提供できるどんな助けにも前もって感謝します!
私のウェブサイトでは、ユーザーは登録後にアクティベーションメールを受信することになっています。一部の電子メールは受信されておらず、スパムフィルターフォルダにも送信されません。
私のintegral_mailerログを確認した後、私は問題を発見したと思います。逆引きDNS情報がないため、システムはメッセージを拒否しているようです。
- 拒否されたメッセージに対するComcastの発言は次のとおりです。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
integer_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