邮件发送到垃圾邮件文件夹。我不明白这个问题。
# Don't care if the mailer can't send.
config.action_mailer.raise_delivery_errors = false
config.action_mailer.perform_deliveries = true
config.action_mailer.default_url_options = { :host => 'localhost:3000' }
#config/environments/development.rb
config.action_mailer.default :charset => "utf-8"
config.action_mailer.delivery_method = :smtp
config.action_mailer.smtp_settings = {
:openssl_verify_mode => 'none',
address: 'vps103.spsnetwork.net',
port: 25,
domain: 'mail.forestbankfoundation.org',
authentication: :login,
enable_starttls_auto: true,
user_name: 'no-reply@forestbankfoundation.org',
password: '********'
}
class NewsLetterMailer < ActionMailer::Base
def newsletter_email(newsletter)
@newsletter = newsletter
mail(from: "no-reply@forestbankfoundation.org", to: @newsletter.email, subject: "New Letter For FBF Registartion", body: " Hello #{@newsletter.name} \n :Email: #{@newsletter.email}, \n Thank You For Registration Our News Letter" )
end
end
有人可以解决这个问题。我不明白为什么会发生这种情况?
答案 0 :(得分:1)
我不认为action_mailer与它的伙伴有关。看看this
每个接收ISP都使用不同的垃圾邮件过滤技术 一些ISP利用一些非常疯狂的想法来打击垃圾邮件。所以你会的 毫无疑问,在发送电子邮件的过程中,某些邮件会被过滤掉 广告活动。