Viewing 1 to 5 of 5 items
Tag Archives: attachments

How to send multiple attachments through e-mail in UNIX?

I am facing an issue with the “mailx” command while trying to mail attachments. I am able to mail a single attachment by using the “uuencode” command, I am not sure how to use it for multiple attachments… PFA the sample code… MESSAGE=$LOG_FILE or $ERR_FILE FILE=$SOURCE_PATH/$ATTACHMENT_FILENAME FILENAME=$ATTACHMENT_FILENAME’_’$DATE.csv SUBJECT=’Last Run Details for the XYZ program’ MAILLIST=$SUCCESS_MAILLIST  Full Article…

0

Korn Shell code to send attachments with mailx and uuencode?

I need to attach a file with mailx but at the moment I’m not having a lot of success. Here’s my code: subject=”Something happened” to=”somebody@somewhere.com” body=”Attachment Test” attachment=/path/to/somefile.csv uuencode $attachment | mailx -s “$subject” “$to” << EOF The message is ready to be sent with the following file or link attachments: somefile.csv Note: To protect  Full Article…

0

Attach a File to Message via Command Line

Here’s an example of an email attachment. # uuencode my_binaryfile1 | mailx -s “Email binary as attachment” esofthub@esofthub.com For multiple attachments, I use a mail client such as dtmail, Netscape or FireFox. But I’ve seen this done too. # uuencode my_binaryfile1 my_binaryfile2 | mailx -s “Email binary as attachment” esofthub@esofthub.com For NON-binary type files Please note the ~r (tilde command  Full Article…

0

Sending simple message body + file attachment using Linux Mailx

I am writing a shell script to send an email using Linux Mailx, the email must contain a file attachment and a message body. Currently sending an email with an attachment: output.txt | mail -s “Daily Monitoring” james@dell.com I wish to add a message body. How should i? Linux Mailx: mail [-eIinv] [-a header] [-b addr] [-c addr] [-s subj] to-addr  Full Article…

0