Reputation: 5953
I'm trying to use ActionMailer for the first time.
My mailer looks like this:
class RequestMailer < ActionMailer::Base
default from: "[email protected]"
def request_email(worequest)
@worequest = worequest
mail(:to => "[email protected]", :subject => "New Service Request")
end
end
But, I get the following error: Net::SMTPFatalError in WorequestsController#create
550 Cannot receive from specified address <[email protected]>: Unauthenticated senders not allowed
How do I correct? Thanks!
Upvotes: 0
Views: 135
Reputation: 2746
This is an error from the mail server - it is refusing to deliver email from your address. Thats the part you need to diagnose. To help you, we'd need more information about the server you're trying to send through. To troubleshoot, I would try configuring a different client to send through your server, then try to send an email from [email protected] to [email protected] and see what happens.
Upvotes: 1