Actionmail Net :: SMTPServerBusy - 发件人地址被拒绝:找不到域

时间:2011-11-12 21:23:41

标签: ruby-on-rails ruby ruby-on-rails-3 actionmailer

当我尝试使用不属于我自己的发件人地址发送和发送电子邮件时,我的应用程序中出现了这个问题.rb我收到此错误:

Net::SMTPServerBusy in SupportsController#create

450 4.1.8 <mail@asdasda.dk>: Sender address rejected: Domain not found

如果我键入一个有效的域名,我会得到这个错误:

Net::SMTPFatalError in SupportsController#create

553 5.7.1 <mail@validdomain.dk>: Sender address rejected: not owned by user MY secret e-mail

我已按照本指南操作: http://www.railsmine.net/2010/03/rails-3-action-mailer-example.html

我的邮件:

class Notifier < ActionMailer::Base

  def support_notification(sender)
    @sender = sender
    mail(:to => "MY secret e-mail",
         :from => sender.email,
         :openssl_verify_mode  => 'none',
         :subject => "New #{sender.support_type}")
 end
end

1 个答案:

答案 0 :(得分:0)

似乎app并不认证自己 您需要更改:从参数更改为允许的电子邮件(在您的示例中为MY secret e-mail