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