(heeeelp) sending an email as attachment

Problem: i get an email from a pop3 mailbox, i want to send it as an
attachment in another mail.

I get via Net::pop a mail
i handle it via Tmail::mail

if i use this code, the attachment i receive is visible only via
outlook or
other clients, webmails as gmail or yahoo can’t open the attachment

i call the action mailer in this way

m is the mail NET::POP
mail is the tmail object

mailer_create_mail(tmail.to_s)

attachment :content_type => "message/rfc822", :filename =>"new_email.eml", :body => mail

Is there a way to encode the mail in a way every client can open it?

m is the mail NET::POP
mail is the tmail object

mailer_create_mail(tmail.to_s)

sorry,
mailer_create_mail(mail.to_s)

and the same result i get if i use

mailer_create_mail(m.pop)

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs