AIX: How do you send an attachment via mail

Uuencode is the answer:
uuencode [source-file] [filename].b64 mail -v -s “subject” [email-address]
For example:
# uuencode /etc/motd motd.b64 mail -v -s “Message of the day” email@hostname.comI
use the .b64 extension which gets recognized by Winzip. When you received your email in Outlook, you will have an attachment, which can be opened by Winzip.

0 (0)
Article Rating (No Votes)
Rate this article
There are no attachments for this article.
There are no comments for this article. Be the first to post a comment.
Full Name
Email Address
Security Code Security Code
Related Articles RSS Feed
Understanding dump devices sysdumpdev
Viewed 4018 times since Mon, Jul 9, 2018
AIX 7.2 running on my Macbook?
Viewed 11747 times since Mon, Jun 3, 2019
AIX: Script to get Total Disk Size
Viewed 2982 times since Tue, Jun 12, 2018
Viewed 10781 times since Wed, May 30, 2018
IBM AIX MPIO: Best practices and considerations
Viewed 10026 times since Wed, May 30, 2018
AIX: Remove existing disk
Viewed 2277 times since Sun, Jun 3, 2018
AIX Booting
Viewed 9608 times since Tue, Apr 16, 2019
HOWTO: Implement SEA Failover with Dual VIOS
Viewed 6819 times since Tue, Jun 4, 2019
How to Configure Sendmail not to Look up MX records
Viewed 2882 times since Fri, Apr 19, 2019
AIX Replacing a failed disk (rootvg)
Viewed 7864 times since Tue, Jul 17, 2018