[2 days left] What’s wrong with your cloud strategy? Learn why multicloud solutions matter with Nimble Storage.Register Now

x
?
Solved

How to send binary files as attachment when using sendmail?

Posted on 2000-04-24
3
Medium Priority
?
278 Views
Last Modified: 2010-04-21
Anybody knows how to send binary files as attachment when using sendmail?
0
Comment
Question by:shiqi
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
3 Comments
 

Accepted Solution

by:
etdey earned 60 total points
ID: 2746240
This is not a function of sendmail, but rather your mail client. This is the simple mechanism for sending a binary file as the entire message:

  $ uuencode  mybinaryfile  mybinaryfile  >  mybinaryfile.uu
  $ mail user@host < mybinaryfile.uu

You can use this method to send compressed tar files to other Unix boxes or to PCs that have WinZIP.

If you want to know how the typical message attachments are handled by mail clients, you need to look into the multi-part MIME message standards. Basically, a message is broken into several pieces and each piece has a MIME header that tells its format. Binary sections are encoded in BASE64 format.
0
 
LVL 12

Expert Comment

by:tel2
ID: 2763610
Or, in one step:
  uuencode mybinaryfile call-it-this | mail user@host
0
 

Author Comment

by:shiqi
ID: 2775815
Thanks
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Let's say you need to move the data of a file system from one partition to another. This generally involves dismounting the file system, backing it up to tapes, and restoring it to a new partition. You may also copy the file system from one place to…
I promised to write further about my project, and here I am.  First, I needed to setup the Primary Server.  You can read how in this article: Setup FreeBSD Server with full HDD encryption (http://www.experts-exchange.com/OS/Unix/BSD/FreeBSD/A_3660-S…
This video shows how to set up a shell script to accept a positional parameter when called, pass that to a SQL script, accept the output from the statement back and then manipulate it in the Shell.
In a previous video, we went over how to export a DynamoDB table into Amazon S3.  In this video, we show how to load the export from S3 into a DynamoDB table.

656 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