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 [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en.

Reply via email to