i have a problem with my prod actionmailer. I'm hosted on site5 sharing cloud. The problem is i get this error message.
A message that you sent using the -t command line option contained no
addresses that were not also on the command line, and were therefore
suppressed. This left no recipient addresses, and so no delivery could
be attempted.
------ This is a copy of your message, including all the headers. ------
Date: Sat, 17 Sep 2011 21:06:42 +0000
From: [email protected]
To: [email protected]
Message-ID: <[email protected]>
Subject: test
Mime-Version: 1.0
Content-Type: text/plain;
charset=UTF-8
Content-Transfer-Encoding: 7bit
i added default
default :recipient => '[email protected]'
but the mail return me the same error.
my ActionMailer controller
class Emailtousers < ActionMailer::Base
default :from => "[email protected]"
default :recipient => "[email protected]"
def plan_notification(resource)
@resource = resource
puts resource
mail(:to => "[email protected]", :subject => 'test')
end
end
What i missed?
i followed this to help me http://edgeguides.rubyonrails.org/action_mailer_basics.html