# Simplest way to "redirect" an email message

**URL:** <https://www.ruby-forum.com/t/simplest-way-to-redirect-an-email-message/111240>\
**Category:** Rails\
**Created:** [August 4, 2007, 5:31am UTC](https://www.ruby-forum.com/t/simplest-way-to-redirect-an-email-message/111240 "2007-08-04T05:31:41Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![jballanc](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/97f17d/32.png) [@jballanc](https://www.ruby-forum.com/u/jballanc)\
**Post date:** [August 4, 2007, 5:31am UTC](https://www.ruby-forum.com/t/simplest-way-to-redirect-an-email-message/111240/1 "2007-08-04T05:31:41Z")

</div>

My email program has a “redirect” function that re-sends an email  
message to someone else but doesn’t modify the body and headers - so  
the resent message appears just like it did the first time. If I  
receive a message and redirect it to my friend Joe, he still sees “To:  
Joshua B.” in the headers.

Any idea what is the simplest way to do this with ROR? I was trying to  
use Net::SMTP but while it works for simple text messages it is  
failing on more complex multipart MIME messages.

from = removed\_email\_address@domain.invalid  
to = removed\_email\_address@domain.invalid  
mail = tmail.to\_s  
Net::SMTP.start(SMTP\_server, 25) do |smtp|  
smtp.send\_message mail, from, to  
end

Is this the right approach if I’m starting with an mbox style message  
parsed out with RMail:📫:MBoxReader?

Thanks!

~Josh
