I''d like to read in an mbox file and "resend" the message to
a
different SMTP address. The following code seems to work for plain
text messages but not for MIME messages.
from = f...-hcDgGtZH8xNBDgjK7y7TUQ@public.gmane.org
to = t...-hcDgGtZH8xNBDgjK7y7TUQ@public.gmane.org
mail = tmail.to_s
Net::SMTP.start(SMTP_server, 25) do |smtp|
smtp.send_message mail, from, to
end
Seems like this should be pretty straight forward since I don''t want
to modify the message body at all.
Any ideas what I should be doing differently for MIME messages?
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
-~----------~----~----~----~------~----~------~--~---