03-01-2010
Think there might be a bug on my mail server (Lotus notes) not able to decode multiple attachments. Referred the following link.
http://linux.die.net/man/1/uuencode.
Tried the following in the command prompt, but still giving junk characters for the second file
uuencode first first.txt | uuencode second second.txt.| mailx -s "Sub " mailid
(first and second are valid files)
Please let me know if it can be resolved.
Thanks,
Srivatsan
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
From a program, I want to execute a UNIX elm command that will send multiple txt attachment files to an email address. I can do it for one attachment only ie. "elm -s"subject" emailaddress < attachment.txt"
1. The attachment is received in the body of the email and not as an attachment.
2. The... (1 Reply)
Discussion started by: anarvan
1 Replies
2. Shell Programming and Scripting
Hi,
I am using the mailx command to send email to multple users. The command works fine when i am sending mail to a single user but when i insert multiple email ids inside the quote it does not work. All the email ids are coming from a property file.Please have a lookt at the property file and... (4 Replies)
Discussion started by: priyaksingh
4 Replies
3. UNIX for Advanced & Expert Users
I have written the following code send multiple attachments using mailx
(uuencode file1 file1; uuencode file2 file2; uuencode file3 file3;) | mailx -s MultipleAttachments -r Sysadmin abc@xyz.com
The attachments are coming properly if the file1,2,3 are either pdf, text, doc. But if these files... (2 Replies)
Discussion started by: ramanam2004
2 Replies
4. UNIX for Dummies Questions & Answers
Most of my email attachments are fine, but some recipients get the email with the uuencode attachment included as "text" at the end of the body of the message.
Has anybody seen this? It seems to happen most with yahoo, msn and other freebie email addresses.
Thanks (1 Reply)
Discussion started by: Dave Miller
1 Replies
5. Shell Programming and Scripting
The following is an extract from one of my Shell Scripts which uses uuencode and mailx to send an email with multiple attachements:
uuencode $LOG_REPORT $(basename $LOG_REPORT)
uuencode $HTML_FILE $(basename $HTML_FILE )
) | if
then mailx -b "$COPY_TO" -s "$SUBJECT" -r "$MAIL_FROM"... (2 Replies)
Discussion started by: suthera
2 Replies
6. Shell Programming and Scripting
I have created a shell scripts and wanted to email users multiple attachments using mailx. I noticed that when I do a man on mailx I see and -a option for attachments. When I run a:
mailx -s "test attachments" -a include_file -a exclude_file testuser@mydomain.com
(Interrupt -- one more to... (1 Reply)
Discussion started by: metallica1973
1 Replies
7. Shell Programming and Scripting
Hello ,
I am trying to send an email with two attachments . I have tried all previous suggestion in this forum but none worked. I could send one attachment in an email by
uuencode $file "$file" | mailx -m -s "File" xxx@xx.com
but unable to send multiple attachments .
I have tried
... (8 Replies)
Discussion started by: RaviTej
8 Replies
8. Red Hat
We don't have uuencode installed in our machines..... Please tell me how to send mail with multiple attachments ??? URGENT !!!!!
Please tell me using command line (or) scripts..........
please......
Thanks in Advance.... (1 Reply)
Discussion started by: vamshigvk475
1 Replies
9. Shell Programming and Scripting
Hi,
i try to send two (multiple) files by the mail-console-command
mail -s TEST -a f1.pdf f2.pdf n.ame@ms123.de
but it doesn't work. can someone give me a hint?
Thanks in advance,
IMPe (2 Replies)
Discussion started by: IMPe
2 Replies
10. Shell Programming and Scripting
Hi,
I'm trying to send mail with attachments using uuencode, but it doesn't work.
Command (also tried with mailx):
uuencode testfile testfile | mail emailadress
The email I get doesn't have an attachment, and has this in the message body:
begin 664 testfile
%=&5S=`H`
`
end
... (4 Replies)
Discussion started by: Subbeh
4 Replies
LEARN ABOUT LINUX
uudecode
uuencode(1) General Commands Manual uuencode(1)
NAME
uuencode, uudecode - encode a binary file, or decode its representation
SYNOPSIS
uuencode [-m] [ file ] name
uudecode [-o outfile] [ file ]...
DESCRIPTION
Uuencode and uudecode are used to transmit binary files over channels that support only simple ASCII data.
Uuencode reads file (or by default the standard input) and writes an encoded version to the standard output, using only printable ASCII
characters. The encoded output begins with a header, for use by uudecode, which records the mode of the input file and suggests name for
the decoded file that will be created. (If name is /dev/stdout then uudecode will decode to standard output.) The encoding has the format
documented at uuencode(5), unless the option -m is given, when base64 encoding is used instead.
Note: uuencode uses buffered input and assumes that it is not hand typed from a tty. The consequence is that at a tty, you may need to hit
Ctl-D several times to terminate input.
Uudecode transforms uuencoded files (or standard input) into the original form. The resulting file is named name (or outfile if the -o
option is given) and will have the mode of the original file except that setuid and execute bits are not retained. If outfile or name is
/dev/stdout the result will be written to standard output. Uudecode ignores any leading and trailing lines. The program determines from
the header which of the two supported encoding schemes was used.
EXAMPLES
The following example packages up a source tree, compresses it, uuencodes it and mails it to a user on another system. When uudecode is
run on the target system, the file ``src_tree.tar.Z'' will be created which may then be uncompressed and extracted into the original tree.
tar cf - src_tree | compress | uuencode src_tree.tar.Z | mail sys1!sys2!user
SEE ALSO
compress(1), mail(1), uucp(1), uuencode(5)
STANDARDS
This implementation is compliant with P1003.2b/D11.
BUGS
If more than one file is given to uudecode and the -o option is given or more than one name in the encoded files are the same the result is
probably not what is expected.
The encoded form of the file is expanded by 37% for UU encoding and by 35% for base64 encoding (3 bytes become 4 plus control information).
REPORTING BUGS
Report bugs to <bug-gnu-utils@gnu.org>. Please put sharutils or uuencode in the subject line. It helps to spot the message.
HISTORY
The uuencode command appeared in BSD 4.0.
uuencode(1)