Sponsored Content
Top Forums Shell Programming and Scripting sending multiple files along with mail message using uuencode Post 302546399 by jayan_jay on Thursday 11th of August 2011 06:24:32 AM
Old 08-11-2011
Code:
$ ( echo "Here is my text message ....Thanks" ; uuencode file1 file1.txt ; uuencode file2 file2.txt ) | mailx -s "My message" abc@xyz.com

 

10 More Discussions You Might Find Interesting

1. UNIX for Advanced & Expert Users

uuencode: command not found when sending mail in LINUX

HI all, When i run this command below i get this error: (cat /root/body.txt ; uuencode -m Summaryfile.zip) | mailx -s "completed" sandeep@help.com bash: uuencode: command not found Does anyone know why this is happening? Or is there any alternative to send mail with an... (2 Replies)
Discussion started by: bsandeep_80
2 Replies

2. Shell Programming and Scripting

uuencode not working for multiple files

Hi, I have gone through the other related post but are of no help for me I am sending multiple files as attachement. The first file comes fine as an attachement but the other files are coming as binary. For people with older version of email software they can see all attachements but... (1 Reply)
Discussion started by: pinnacle
1 Replies

3. Shell Programming and Scripting

How to embed a html file in a mail sending from Linux box with uuencode or mailx?

How to embed a html file as subject in a mail sending from Linux box with uuencode or mailx or any other way? we do not want the file as attachment, it should be embedded in the mail subject. (2 Replies)
Discussion started by: johnveslin
2 Replies

4. Shell Programming and Scripting

Echo - Sending mail to multiple addresses

Hi, If I want my script to send a mail to multiple recipients I can do the following: if then echo $err_string1 | mailx -s "UAT CPU ALERT" 1@email.com echo $err_string1 | mailx -s "UAT CPU ALERT" 2@email.com fi Can this also be done something like: ... (1 Reply)
Discussion started by: runnerpaul
1 Replies

5. Shell Programming and Scripting

Sending e-mail of record counts in 3 or more files

I am trying to load data into 3 tables simultaneously (which is working fine). Then when loaded, it should count the total number of records in all the 3 input files and send an e-mail to the user. The script is working fine, as far as loading all the 3 input files into the database tables, but... (3 Replies)
Discussion started by: msrahman
3 Replies

6. Shell Programming and Scripting

Searching for files and sending mail

Hi, I want a script that can perform the following tasks, 1)Open command prompt and navigate to certain path (for eg: C:\Programs\) and then execute the below command on a daily basis, list -C <client name> -t 13 -l -R -s <previous_day> /D > D:\Prgrams\list_currentdate.txt Note: There... (2 Replies)
Discussion started by: cratercrabs
2 Replies

7. Shell Programming and Scripting

Mail sending with multiple attachement(pdf and csv) with html content from Linux

Hi, We have a requirement to send multiple attachment(pdf and csv) along with html content in a single mail. For that we are using uuencode. It is working for single pdf attachment and html content. But we are unable to send both pdf and csv attachment with html content. Below is the script.... (5 Replies)
Discussion started by: dholea
5 Replies

8. UNIX for Dummies Questions & Answers

Sending mail to multiple recipient added in a text file

I am trying to find a code that can help me mail to a list of recipients which are in a text file. Sample code $cat recipient.txt me@test.com me1@test.com me2@test.com I want a mailx step that can read contents of recipient.txt and mail to all the users. I don't want to use mails... (1 Reply)
Discussion started by: Gurkamal83
1 Replies

9. Shell Programming and Scripting

Sending multiple files using uuencode command

Hi All, I want to send multiple CSV file using below code. In Result folder, we have multiple CSV files. However, I want to catch only Summary CSV files. I was trying using *, % with different combination. However, not able to do so. From below code, I could send only one file... (1 Reply)
Discussion started by: Swapnil Mawle
1 Replies

10. UNIX for Beginners Questions & Answers

Sending Excel Files as attachment using Mail

Hie, I need to attach an .xlsx file as an attachment to a mail. I have used the mail option but i dont think there is anything for attachment. Can you show me how else can i do it? I am not allowed to install mutt since it is a workplace and they have their restrictions. And its a Bash Shell (2 Replies)
Discussion started by: barryallen
2 Replies
UUENCODE(1C)															      UUENCODE(1C)

NAME
uuencode, uudecode - encode/decode a binary file for transmission via mail SYNOPSIS
uuencode [ source ] remotedest | mail sys1!sys2!..!decode uudecode [ file ] DESCRIPTION
Uuencode and uudecode are used to send a binary file via uucp (or other) mail. This combination can be used over indirect mail links even when uusend(1C) is not available. Uuencode takes the named source file (default standard input) and produces an encoded version on the standard output. The encoding uses only printing ASCII characters, and includes the mode of the file and the remotedest for recreation on the remote system. Uudecode reads an encoded file, strips off any leading and trailing lines added by mailers, and recreates the original file with the speci- fied mode and name. The intent is that all mail to the user ``decode'' should be filtered through the uudecode program. This way the file is created automati- cally without human intervention. This is possible on the uucp network by either using sendmail or by making rmail be a link to Mail instead of mail. In each case, an alias must be created in a master file to get the automatic invocation of uudecode. If these facilities are not available, the file can be sent to a user on the remote machine who can uudecode it manually. The encode file has an ordinary text form and can be edited by any text editor to change the mode or remote name. SEE ALSO
atob(n), uusend(1C), uucp(1C), uux(1C), mail(1), uuencode(5) BUGS
The file is expanded by 35% (3 bytes become 4 plus control information) causing it to take longer to transmit. The user on the remote system who is invoking uudecode (often uucp) must have write permission on the specified file. 4th Berkeley Distribution April 24, 1986 UUENCODE(1C)
All times are GMT -4. The time now is 11:03 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy