Solved

How to send binary files as attachment when using sendmail?

Posted on 2000-04-24
3
272 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

The Eight Noble Truths of Backup and Recovery

How can IT departments tackle the challenges of a Big Data world? This white paper provides a roadmap to success and helps companies ensure that all their data is safe and secure, no matter if it resides on-premise with physical or virtual machines or in the cloud.

Question has a verified solution.

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

Suggested Solutions

Hello fellow BSD lovers, I've created a patch process for patching openjdk6 for BSD (FreeBSD specifically), although I tried to keep all BSD versions in mind when creating my patch. Welcome to OpenJDK6 on BSD First let me start with a little …
In tuning file systems on the Solaris Operating System, changing some parameters of a file system usually destroys the data on it. For instance, changing the cache segment block size in the volume of a T3 requires that you delete the existing volu…
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…
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.

770 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