Displaying 1 result from an estimated 1 matches for "pokemailer".
Did you mean:
dovemailer
2011 Dec 14
7
Actionmailer woes
hi Guys
I have now spent hours on this and turn to you in desperation.
I am using Actionmailer to fetch emails, but I need to pass a userid to
the receive method, so that the receive method knows what user to pass
the email to. I tried:
(ATTEMPT 1)
class PokeMailer < ActionMailer::Base
def receive(email,userid)
...
end
I then invoke the receipt of email with
task = PokeMailer.receive(m.pop,userid)
But I get the error ''wrong number of arguments (2 for 1)''
So I though - ok - the actionmailer receive method must be expecting one...