Solved

How to send binary files as attachment when using sendmail?

Posted on 2000-04-24
3
270 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
Comment Utility
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 11

Expert Comment

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

Author Comment

by:shiqi
Comment Utility
Thanks
0

Featured Post

Highfive + Dolby Voice = No More Audio Complaints!

Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

Join & Write a Comment

Using libpcap/Jpcap to capture and send packets on Solaris version (10/11) Library used: 1.      Libpcap (http://www.tcpdump.org) Version 1.2 2.      Jpcap(http://netresearch.ics.uci.edu/kfujii/Jpcap/doc/index.html) Version 0.6 Prerequisite: 1.      GCC …
Java performance on Solaris - Managing CPUs There are various resource controls in operating system which directly/indirectly influence the performance of application. one of the most important resource controls is "CPU".   In a multithreaded…
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
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.

744 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

16 Experts available now in Live!

Get 1:1 Help Now