Solved

How to send binary files as attachment when using sendmail?

Posted on 2000-04-24
3
271 Views
Last Modified: 2010-04-21
Anybody knows how to send binary files as attachment when using sendmail?
0
Comment
Question by:shiqi
3 Comments
 

Accepted Solution

by:
etdey earned 20 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

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…
Installing FreeBSD… FreeBSD is a darling of an operating system. The stability and usability make it a clear choice for servers and desktops (for the cunning). Savvy?  The Ports collection makes available every popular FOSS application and packag…
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.

910 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

20 Experts available now in Live!

Get 1:1 Help Now