02-19-2010
Please post the command sequence or pipeline you used to prepare and send the email. We would expect to see a sequence something like "ux2dos" (or "unix2dos"), "uuencode", "mailx -m".
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
I have used the forum to determine the format required to send attachments from hp-ux 11. the problem I have is that using mailx does not attach the file, but subsititing mailx for mail on the command line attaches the file but i'm not able to specify a subject?
The attachment has been convert... (3 Replies)
Discussion started by: brettmartin99
3 Replies
2. Shell Programming and Scripting
Hi ,
Whenever I try to mail to external email Id's ( like yahoo , gmail etc ) the attachment is getting corrupted.
In the script I am using the mailx option as follows:-
(cat $temp_mail; uuencode $temp_info_csv $temp_info_csv)|mailx -s "Report" -m $c_mail_id;
where $temp_mail is the... (1 Reply)
Discussion started by: Sandipan
1 Replies
3. Shell Programming and Scripting
I don't want the attachment embedded in the mail. I would like a file attached.
When I do
mailx -s "Report, `date +'%D %r` " -r "Notifications" bob@bob.com < /usr/local/bin/myreport.log> /dev/null
It gets embedded in my email. I want a file attachment. How do I do that? (2 Replies)
Discussion started by: guessingo
2 Replies
4. Shell Programming and Scripting
Hi All,
Can anyone please provide the command for sending an mail with attachment using mailx command.
Thanks in Advance :)
Regards,
Siram. (3 Replies)
Discussion started by: Sriram.Vedula53
3 Replies
5. Solaris
Hi,
When i used below command, i am able to send mail
mailx -s "Testing mail working or not " babu.sudhakar@ymail.com"
but if i want send attachment with mail,which syntax i need to follow to send a file as attachment. (3 Replies)
Discussion started by: sridhardwh
3 Replies
6. Shell Programming and Scripting
Hi Friends,
Please help me with this problem.
I have a number of split files in a directory. each split files has pdf filenames in it. pdf files are also in the same directory.
I send a mail for each split files present in the directory with the pdf file mentioned in the file.
I have... (4 Replies)
Discussion started by: jcebalaji
4 Replies
7. Shell Programming and Scripting
i have to attach the 'body in the email' along with attachment below code is throwing errors, how can i do it ?
here body file contains message, it should display in email, please help
i am using HP-UX
(cat body ;) (uuencode attch1 attch1 ;) | mailx -m -s "testing" "abc@gmail.com"
... (4 Replies)
Discussion started by: only4satish
4 Replies
8. AIX
We've been emailing uuencode'd PDF files as attachments with mailx for quite sometime with no problems. Recently we've expanded the volume and have intermittent problems with recipients unable to open the attachment. The same file can be successfully resent at a different time.
It's been... (1 Reply)
Discussion started by: Papa Lee
1 Replies
9. UNIX for Beginners Questions & Answers
Hello, I am new to the Unix thing, and I am having trouble sending attachments via shell client putty through mailx.
The command I use is
$ mailx -s "Subject" user@blah.com < attachment.txt
but everytime I do that it would say Cannot open attachment.txt
I have the file save to my computer... (5 Replies)
Discussion started by: mrobin20
5 Replies
10. Shell Programming and Scripting
Hi,
We are using HPUX and have a script to send PDF attachment via MAILX
Basically the script does the following:
echo > $HOME/MY_mail_file
uuencode o40881754.pdf o40881754.pdf >> MY_mail_file
cat MY_mail_file | mailx -m -s "Sending PDF attachment" <email address>
This script works... (7 Replies)
Discussion started by: Michel
7 Replies
LEARN ABOUT CENTOS
uuencode
uuencode(1) User Commands uuencode(1)
NAME
uuencode - encode a file into email friendly text
SYNOPSIS
uuencode [-flag [value]]... [--opt-name[[=| ]value]]... [ in-file ] output-name
DESCRIPTION
uuencode is used to create an ASCII representation of a file that can be sent over channels that may otherwise corrupt the data. Specifi-
cally, email cannot handle binary data and will often even insert a character when the six character sequence "0rom " is seen. uuencode
will read in-file if provided and otherwise read data from standard in and write the encoded form to standard out. The output will begin
with a header line for use by uudecode giving it the resulting suggested file output-name and access mode. If the output-name is specifi-
cally /dev/stdout, then uudecode will emit the decoded file to standard out. 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.
OPTIONS
-m, --base64
convert using base 64.
By default, uuencode will encode using the traditional conversion. It is slower and less compact than base 64. 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).
-e, --encode-file-name
encode the output file name.
Since output file names may contain characters that are not handled well by various transmission modes, you may specify that the
output-name be hex encoded as well.
-h, --help
Display usage information and exit.
-!, --more-help
Pass the extended usage information through a pager.
-R [rcfile], --save-opts[=rcfile]
Save the option state to rcfile. The default is the last configuration file listed in the OPTION PRESETS section, below.
-r rcfile, --load-opts=rcfile, --no-load-opts
Load options from rcfile. The no-load-opts form will disable the loading of earlier RC/INI files. --no-load-opts is handled early,
out of order.
-v [{v|c|n}], --version[={v|c|n}]
Output version of program and exit. The default mode is `v', a simple version. The `c' mode will print copyright information and
`n' will print the full copyright notice.
OPTION PRESETS
Any option that is not marked as not presettable may be preset by loading values from configuration ("RC" or ".INI") file(s). The file
"$HOME/.sharrc" will be used, if present.
STANDARDS
This implementation is compliant with P1003.2b/D11.
FILES
See OPTION PRESETS for configuration files.
EXIT STATUS
One of the following exit values will be returned:
0 (EXIT_SUCCESS)
Successful program execution.
1 (EXIT_FAILURE)
The operation failed or the command syntax was not valid.
66 (EX_NOINPUT)
A specified configuration file could not be loaded.
70 (EX_SOFTWARE)
libopts had an internal operational error. Please report it to autogen-users@lists.sourceforge.net. Thank you.
SEE ALSO
uudecode(1)
HISTORY
The uuencode command first appeared in BSD 4.0.
AUTHORS
Free Software Foundation, Inc.
COPYRIGHT
Copyright (C) 1994-2013 Free Software Foundation, Inc. all rights reserved. This program is released under the terms of the GNU General
Public License, version 3 or later.
BUGS
Please put sharutils in the subject line for emailed bug reports. It helps to spot the message.
The output file name must not begin with the 11 character sequence:
hex-encode:
unless you specify the -h (encode-file-name) option.
Please send bug reports to: bug-gnu-utils@gnu.org
NOTES
This manual page was AutoGen-erated from the uuencode option definitions.
GNU sharutils (4.13.3) 06 Jan 2013 uuencode(1)