(heeeelp) sending an email as attachment

R

rabarama

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)

<action mailer code cut>
attachment :content_type => "message/rfc822",
:filename =>"new_email.eml",
:body => mail
<action mailer code cut>

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

rabarama

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)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,769
Messages
2,569,580
Members
45,054
Latest member
TrimKetoBoost

Latest Threads

Top