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)
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)
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)
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)
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)
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)
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)
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)
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)
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 REDHAT
uuencode
uuencode(n) encode/decoding a binary file uuencode(n)
NAME
uuencode - encode/decoding a binary file
SYNOPSIS
package require Tcl 8
package require uuencode ?1.0.1?
::uuencode::encode string
::uuencode::decode string
::uuencode::uuencode ?-name string? ?-mode octal? (-file filename | ?--? string)
::uuencode::uudecode (-file filename | ?--? string)
DESCRIPTION
This package provides a Tcl-only implementation of the uuencode(1) and uudecode(1) commands. This encoding packs binary data into printable
ASCII characters.
::uuencode::encode string
returns the uuencoded data. This will encode all the data passed in even if this is longer than the uuencode maximum line length. If
the number of input bytes is not a multiple of 3 then additional 0 bytes are added to pad the string.
::uuencode::decode string
Decodes the given encoded data. This will return any padding characters as well and it is the callers responsibility to deal with
handling the actual length of the encoded data. (see uuencode).
::uuencode::uuencode ?-name string? ?-mode octal? (-file filename | ?--? string)
::uuencode::uudecode (-file filename | ?--? string)
UUDecode a file or block of data. A file may contain more than one embedded file so the result is a list where each element is a
three element list of filename, mode value and data.
OPTIONS -filename name
Cause the uuencode or uudecode commands to read their data from the named file rather that taking a string parameter.
-name string
The uuencoded data header line contains the suggested file name to be used when unpacking the data. Use this option to change this
from the default of "data.dat".
-mode octal
The uuencoded data header line contains a suggested permissions bit pattern expressed as an octal string. To change the default of
0644 you can set this option. For instance, 0755 would be suitable for an executable. See chmod(1).
EXAMPLES
% set d [uuencode::encode "Hello World!"]
2&5L;&@5V]R;&0A
% uuencode::uudecode $d
Hello World!
% set d [uuencode::uuencode -name hello.txt "Hello World"]
begin 644 hello.txt
+2&5L;&@5V]R;&0`
`
end
% uuencode::uudecode $d
{hello.txt 644 {Hello World}}
KEYWORDS
encoding, uuencode
base64 1.0.1 uuencode(n)