Solved

Emailing a file from the server

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

Ransomware-A Revenue Bonanza for Service Providers

Ransomware – malware that gets on your customers’ computers, encrypts their data, and extorts a hefty ransom for the decryption keys – is a surging new threat.  The purpose of this eBook is to educate the reader about ransomware attacks.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
New MX Records 12 78
Encryption for e-mail local delivery 1 40
Office 365 Migration and MX entry 7 69
Email password question 6 19
This short article will present "How to import ICS Calendar onto Office 365 Calendar". I was searching for free (or not free) tools to convert ICS to CSV without success. The only tools I found & working well were online tools...this was too hard to…
New-MailboxSearch Powershell Command and step by step approach to Search and Extract Emails form Exchange 2013 Journaling server.
Familiarize people with the process of utilizing SQL Server views from within Microsoft Access. Microsoft Access is a very powerful client/server development tool. One of the SQL Server objects that you can interact with from within Microsoft Access…
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 …

932 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

Need Help in Real-Time?

Connect with top rated Experts

9 Experts available now in Live!

Get 1:1 Help Now