11-26-2008
I have tried using
(cat $msg; uuencode $attach1 in1.txt ; uuencode $attach2 in2.txt ) | mailx -m -r "subject"
mail_addr@domain.com
and its working fine now...
Thanks!
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Is there any way we can send file attachemnts through mails from a unix server. Does the 'mail' command have such an option ?? (1 Reply)
Discussion started by: Rohini Vijay
1 Replies
2. UNIX for Dummies Questions & Answers
Hi people
Can u help me aorund on this
cat $DISTRIBUTION_LIST | tail -1 | read mailtolist
test -s $INOVOICES.dat
if
then
echo " Sales Report generted" | read subject
mailx -ms "${subject}." $mailtolist
RET_CODE=$?
if ; then
echo "Messaging Failed." >> $LOG_FILE
exit 1
fi
else... (2 Replies)
Discussion started by: bobprabhu
2 Replies
3. Shell Programming and Scripting
Hi, I need to send a email as a txt file and i used the commands,
(echo `echo $EMAIL_MSG` ; uuencode "file.txt" "file.txt" ) | mailx -s "$EMAIL_SUBJECT" "$EMAIL_ID"
I received email with a attachment with all data but i get all of them in one row.
For example:
If file.txt contains value... (1 Reply)
Discussion started by: skcvasanth
1 Replies
4. UNIX for Advanced & Expert Users
Hi,
I am using Sun solaris OS unix server
I am trying to send mail with an attachment using below script
cat test.txt;uuencode test.txt test.txt|mailx -s "$subject" someone@somewhere
I m getting mails but with no attachment.
Hence i manipulate the script as below and i am... (2 Replies)
Discussion started by: sv0081493
2 Replies
5. UNIX for Dummies Questions & Answers
Hi All,
In my .ksh script, I am sending an email with body and attachment (.txt) using sendmail command. I am able to receive the attachement along with the body of the mail. But I am getting special characters along with the content in the .txt. Also the alignment is incorrect. Can you please... (7 Replies)
Discussion started by: KRR
7 Replies
6. Shell Programming and Scripting
Hi Team,
I have written the following code snippet to send mail with attachment to recipient. But I am getting mail with attachment. But the file is empty. All the 3 Attachment* size is more than 80KB.
Not sure what is wrong in the command.
MSG_BODY1="hi"
LOG_FILE="a/b/c/log1.log"... (2 Replies)
Discussion started by: kmanivan82
2 Replies
7. Shell Programming and Scripting
Hi Everyone,
I am facing problems in sending html mail with attachemnt.
I will able to send mail with attachment (plain text ) using mailx -s and uuencode command and
also html mail without attachment using sendmail option.
However I am not able to send html mail along with attachment.Either... (2 Replies)
Discussion started by: karthik adiga
2 Replies
8. How to Post in the The UNIX and Linux Forums
How to Send a mail with multiple attachment also differenet extension using uuencode in AIX.
Can you please help me. Its so urgent.
Thanks.
Regards,
Swapnil
---------- Post updated at 05:37 AM ---------- Previous update was at 05:35 AM ----------
I have below code. But attachment... (1 Reply)
Discussion started by: Swapnil Mawle
1 Replies
9. Shell Programming and Scripting
How to Send a mail with multiple attachment also differenet extension using uuencode in AIX.
Can you please help me.
---------------------------------------------------------
I have below code. But attachment not been attached.
(cat /aceapp/QATD011R4/ace.ofac/testofac/results/;uuencode... (9 Replies)
Discussion started by: Swapnil Mawle
9 Replies
10. Shell Programming and Scripting
Hello every one.
I use mutt :
"mpack -s "Test" /home/pi/Pictures/2018-10-05_23_10_40.jpg my_email_addres "
to send me a particular picture with the name of the data+jpg in a pictures folder, but this folder I use it for a timelapse proyect with more pictures , and what I need is... (2 Replies)
Discussion started by: maxbcn
2 Replies
LEARN ABOUT OPENDARWIN
uuencode
UUENCODE(1) BSD General Commands Manual UUENCODE(1)
NAME
uuencode, uudecode -- encode/decode a binary file
SYNOPSIS
uuencode [-m] [-o output_file] [file] name
uudecode [-cips] [file ...]
uudecode [-i] -o output_file [file]
DESCRIPTION
The uuencode and uudecode utilities are used to transmit binary files over transmission mediums that do not support other than simple ASCII
data.
The uuencode utility reads file (or by default the standard input) and writes an encoded version to the standard output, or output_file if
one has been specified. The encoding uses only printing ASCII characters and includes the mode of the file and the operand name for use by
uudecode.
The uudecode utility transforms uuencoded files (or by default, the standard input) into the original form. The resulting file is named
either name or (depending on options passed to uudecode) output_file and will have the mode of the original file except that setuid and exe-
cute bits are not retained. The uudecode utility ignores any leading and trailing lines.
The following options are available for uuencode:
-m Use the Base64 method of encoding, rather than the traditional uuencode algorithm.
-o output_file
Output to output_file instead of standard output.
The following options are available for uuencode:
-m Use the Base64 method of encoding, rather than the traditional uuencode algorithm.
-o output_file
Output to output_file instead of standard output.
The following options are available for uudecode:
-c Decode more than one uuencode'd file from file if possible.
-i Do not overwrite files.
-o output_file
Output to output_file instead of any pathname contained in the input data.
-p Decode file and write output to standard output.
-s Do not strip output pathname to base filename. By default uudecode deletes any prefix ending with the last slash '/' for security
purpose.
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
The following example unpack all uuencode'd files from your mailbox into your current working directory.
uudecode -c < $MAIL
The following example extract a compress'ed tar archive from your mailbox
uudecode -o /dev/stdout < $MAIL | zcat | tar xfv -
SEE ALSO
basename(1), compress(1), mail(1), uucp(1), uuencode(5)
BUGS
Files encoded using the traditional algorithm are expanded by 35% (3 bytes become 4 plus control information).
HISTORY
The uudecode and uuencode utilities appeared in 4.0BSD.
BSD
January 27, 2002 BSD