Use the new attachment switch a in mailx to send attachments with the mail. I am using the following command to send pdf attachment with a mail. Need to send attachment in mail without using uuencode via script in aix6. If it doesnt contain the right headers, it will become plaintext mail body. If you have mutt email client installed, try the mutt command as described here. Ibm certified specialist aix system administration archdiocese of boston ph.
Im trying to get a system on my home network to send an image. How to send an email with attachment and body from linux. However on my linux machine this isnt happening it is sending the email with the uuencode output as the body of the email and no attachments. Mailx with uuencode to send mail with attach and message unix scripting tektips some implementations of mailx utility are not able to send attachments. Email multiple file attachments from solairs aix hpux.
We are not able to send the email as an attachment using the uuencode. This normally sends an email with the subject info and contains the attachments info. H ey quick question how do i mail files from ibm aix hpux unix as attachments from my shell scripts or command line. On redhat and related distributions, uuencode is part of the sharutils package. How to attach a file to an email using command line in rhel 6 and. How do you send an attachment via email from aix to windows. This is useful before using bnu or uucp mail to send the file to a remote system. The uuencode command converts a binary file to ascii data. Open a ticket and download fixes at the ibm support portal find a technical tutorial in ibm. Please refer the the uuencode man page for more information. Use mutt command to send files as mail attachments under linux unix oses. How do you send an attachment via e mail from aix to windows.
Is there any other way to send attachments with mail through command line. At the same time i dont have admin access for the same to install the utility i use aix 5. The a options is easier to use that the uuencode command. Then join the message file which is the body of the email along with the uuencoded file which. If you dont have the mutt command installed, use the following command to email files as attachment from unix command prompt or shell scripts. Now its time to send an email attachment using mail command a shown. If uuencode is not installed you have to install the package. Basic syntax to send emails from linux machine using mailx command is show below. What you are doing is asking mail to put into message body whatever uuencode produces. The trouble is, i have to send through smtp but the image file isnt getting decoded by my mail client ive tried in thunderbird and in various webmail interfaces, same result. On ubuntu, i was able to successfully send mail with attachment using. Mail command to send attachements unix and linux forums. The program used for this is called uuencode unix to unix encoding, the.
751 1632 1423 1289 1163 318 333 1195 635 819 1453 24 1635 286 78 144 572 244 966 1149 522 695 1665 1091 738 1257 670 1005 58 1242 1091 1051 186 1080 1193 311 868 909 1390 1346 1363 1229 446