On May 28, 9:08 pm, Duane Morin <rails-mailing-l...@andreas-s.net>
wrote:
> I've got a basic mailer setup and am simply trying to get a Hello
> message through.  If I go into script/console and execute
>
> Emailer.deliver_message("mys...@mydomain.com","My subject", "My
> message")
>
> it works fine.
>
> However, if I fire up a controller with a test method that invokes the
> same thing
>
> def test
>    Emailer.deliver_message("mys...@mydomain.com","My subject", "My
> message")
> end
>
> I never see the message.  Something obvious I'm missing in the context
> of running it in the controller?

Shouldn't be. Stupid question : are you sure the code is actually
getting run? (the action name may be relevant here) Is the instance of
rails serving your web request running with a different RAILS_ENV (ie
potentially different action mailer settings) ?

Fred
> --
> Posted viahttp://www.ruby-forum.com/.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk@googlegroups.com
To unsubscribe from this group, send email to 
rubyonrails-talk+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to