• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 279
  • Last Modified:

How to send binary files as attachment when using sendmail?

Anybody knows how to send binary files as attachment when using sendmail?
0
shiqi
Asked:
shiqi
1 Solution
 
etdeyCommented:
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
 
tel2Commented:
Or, in one step:
  uuencode mybinaryfile call-it-this | mail user@host
0
 
shiqiAuthor Commented:
Thanks
0

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now