When i use "MyMailer.deliver_reply()" in my console, I send an email
exactly as i would expect, but when i call "MyMailer.deliver_reply()"
inside of my receive method, my app sends multiple duplicate messages,
Do you have any clue what may be causing this behavior?
Here is a copy of my log file http://pastie.org/427306.
Here is some pseudo code of what my mailer looks like:
class MyMailer < ActionMailer::Base
def receive(email)
# code to store email information
MyMailer.deliver_reply(email_address_of_sendee)
end
def reply(to_email)
# code to send email, works great when called through console
end
end
This mailer takes in an email stores it, and then thanks the sender for
sending something automatically
--
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-/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
-~----------~----~----~----~------~----~------~--~---