Hi,
I am experimenting with receiving email with actionmailer via getmail
(as described in the Rails Cookbook). The receiving part is working
like a charm but when I check the class of the email object from
inside the receive method I get a string instead of a TMail object, as
I was expecting. Which means I can''t do fancy stuff like
email.subject. I have no idea what''s wrong. I''m
haven''t used
Actionmailer much, so I might be just misunderstanding something.
Here''s my Actionmailer class:
<code>
class Importer < ActionMailer::Base
def self.receive(email)
logger.info "Received mail #{email.class}"
end
end
</code>
--~--~---------~--~----~------------~-------~--~----~
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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---