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
Attachments
There are no attachments for this article.
Comments
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
AIX Oracle tuning
Viewed 227186 times since Tue, Jul 2, 2019
Using expect to automate mundane tasks
Viewed 2072 times since Mon, Jun 3, 2019
Installing a Interim Fix (APAR IV16587)
Viewed 3185 times since Tue, Jul 17, 2018
AIX Password expiry /etc/passwd
Viewed 19481 times since Wed, Jul 3, 2019
Topics: AIX, Networking, System Admin
Viewed 11754 times since Fri, Apr 19, 2019
AIX Not all filesets for 6100-07_AIX_ML were found
Viewed 3230 times since Tue, Jul 17, 2018
How to start daemons at the system startup in AIX servers
Viewed 2643 times since Tue, Jun 18, 2019
IBM AIX commands you should not leave home without
Viewed 7376 times since Mon, Jun 11, 2018
R2dump debug tool
Viewed 2454 times since Tue, Sep 8, 2020
0516-787 extendlv: Maximum allocation for logical volume error
Viewed 9373 times since Tue, Mar 12, 2019