Solved

Emailing a file from the server

Posted on 2011-03-18
2
321 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

Nearly six years ago I was hired by a company to be their senior server engineer. One of my first projects was to implement Exchange Server 2007 on a Windows Server 2008 Single Copy Cluster for high availability. That was the easy part; read on to l…
Workplace bullying has increased with the use of email and social media. Retain evidence of this with email archiving to protect your employees.
In this video we show how to create a Resource Mailbox in Exchange 2013. We show this process by using the Exchange Admin Center. Log into Exchange Admin Center.: Navigate to the Recipients >> Resources tab.: "Recipients" is our default selection …
Established in 1997, Technology Architects has become one of the most reputable technology solutions companies in the country. TA have been providing businesses with cost effective state-of-the-art solutions and unparalleled service that is designed…

808 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