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 Baer" 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 = from-hcDgGtZH8xNBDgjK7y7TUQ@public.gmane.org
to = to-hcDgGtZH8xNBDgjK7y7TUQ@public.gmane.org
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::Mailbox::MBoxReader?
Thanks!
~Josh
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---