我第一次尝试使用 ActionMailer。
我的邮件看起来像这样:
class RequestMailer < ActionMailer::Base
default from: "fred@ameipro.com"
def request_email(worequest)
@worequest = worequest
mail(:to => "dave@ameipro.com", :subject => "New Service Request")
end
end
但是,我收到以下错误: Net::SMTPFatalError in WorequestsController#create
550 Cannot receive from specified address <fred@ameipro.com>: Unauthenticated senders not allowed
我该如何纠正?谢谢!