By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
437,693 Members | 1,972 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 437,693 IT Pros & Developers. It's quick & easy.

How can I forward an email as an attachment

P: 2
I'm using Net::POP3, Email:Simple and Email::Mime to pull emails off of a server and parse them for information to see if they are the result of 'bounced' emails from our system. I then send an email internally notifying the original sender that their automated email failed. I've got it working but I'd like to also forward the complete email as an attachment to a specific system address so I can keep a copy in case someone complains that the email should have gone through and I can check the headers and see why it didn't. I used Mime::Lite to encode the original emails with an attached pdf but I'm not sure how to 'attach' the original email to a new one. I tried to attach it as a message but instead of getting attached 'files' I got a long email with the mime encoded text and all the headers, this will work but I'd rather do it in a manner that will make it like a normal forwarded email.

Help....
Jan 27 '09 #1
Share this Question
Share on Google+
3 Replies


KevinADC
Expert 2.5K+
P: 4,059
comments removed...... I misread the question and posted a reply that was not relevant.
Jan 27 '09 #2

eWish
Expert 100+
P: 971
What did you try? It should be pretty straight forward to do an attachment with MIME::Lite.

--Kevin
Jan 27 '09 #3

P: 2
What I tried was to 'attach' the original Mime encoded email as a string to a new email which got me an email that showed the attachment as text and was not decoded in the email reader. My problem is that I'm not sure how to handle the incoming email to make it an attachment.

Bill
Jan 29 '09 #4

Post your reply

Sign in to post your reply or Sign up for a free account.