[Rails] Re: Actionmailer woes
Hi Colin
Thanks for the feedback. I kinda grokked that eventually. But I can't
just turn my receive method into a class level method - because then the
raw email string never gets turned into a tmail object. I any case the
original code - which works, but doesnt pass my userid, is
class PokeMailer < ActionMailer::Base
def receive(email)
...
end
I then invoke the receipt of email with
task = PokeMailer.receive(m.pop)
Question - is this now a class method or an instance method? It gets
called on the PokeMailer class, and responds, but its not defined with
def self.receive.
I suspect my ruby skills are woefully inadequate.... :(
Any other suggestions?
Pieter
--
Posted via http://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+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home