Module: MailReceiver::ReplyTo
- Defined in:
- lib/mail-receiver/reply_to.rb
Instance Method Summary collapse
- #mail_answer_thread(model, headers = {}, &block) ⇒ Object
- #mail_new_thread(model, headers = {}, &block) ⇒ Object
Instance Method Details
#mail_answer_thread(model, headers = {}, &block) ⇒ Object
13 14 15 16 17 18 19 20 21 22 |
# File 'lib/mail-receiver/reply_to.rb', line 13 def mail_answer_thread(model, headers = {}, &block) if headers[:subject] headers[:subject].prepend('Re: ') end # Mail receiver headers[:reply_to] = reply_to_address(model) mail(headers, &block) end |
#mail_new_thread(model, headers = {}, &block) ⇒ Object
6 7 8 9 10 11 |
# File 'lib/mail-receiver/reply_to.rb', line 6 def mail_new_thread(model, headers = {}, &block) # Mail receiver headers[:reply_to] = reply_to_address(model) mail(headers, &block) end |