Solved

Emailing a file from the server

Posted on 2011-03-18
2
322 Views
Last Modified: 2013-12-18
Our server archives every message that comes in or goes out.

Now someone needs me to provide that message so they may ...err ... CYA.

Anyway, the file has this incredible name like

14:47:05-0400.12630.0

(Obviously a time stamp with some other stuff at the end).

I renamed it (since trying to handle such a name is difficult at the CLI) to 144705.

How do I email this?  (Part of the message is an MS Word attachment they need).  I was horrified  to see what Outlook does to an email, so many html tags, good gosh!
On the server, I tried this:

mail james@mycompany.com -s "Your Email" </root/recovered_email/144705

But I just get the text and the attachment is all gibberish.  I tried saving the attachment and applying uudecode, but that didn't do it either.

Thanks anyone!
0
Comment
Question by:dougp23
2 Comments
 
LVL 31

Accepted Solution

by:
farzanj earned 500 total points
ID: 35168334
Use mutt:


echo "Please see the attached" | mutt -a /root/recovered_email/144705 -s "Your Email" james@mycompany.com

Open in new window

0
 
LVL 1

Author Comment

by:dougp23
ID: 35206399
Thanks, that did the trick!
0

Featured Post

Comprehensive Backup Solutions for Microsoft

Acronis protects the complete Microsoft technology stack: Windows Server, Windows PC, laptop and Surface data; Microsoft business applications; Microsoft Hyper-V; Azure VMs; Microsoft Windows Server 2016; Microsoft Exchange 2016 and SQL Server 2016.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Easy CSR creation in Exchange 2007,2010 and 2013
As cyber crime continues to grow in both numbers and sophistication, a troubling trend of optimization has emerged over the last year.
In this video we show how to create a User Mailbox in Exchange 2013. We show this process by using the Exchange Admin Center. Log into Exchange Admin Center.: First we need to log into the Exchange Admin Center. Navigate to the Recipients >> Mailb…
In this video we show how to create a Contact in Exchange 2013. We show this process by using the Exchange Admin Center. Log into Exchange Admin Center.: First we need to log into the Exchange Admin Center. Navigate to the Recipients >> Contact ta…

791 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question