04-23-2011 10:25 PM
Please advise regarding this issue, i am able to sent email and is being received but the attachment is missing.
I use this code.
uuencode file.tar file.tar | mailx -s "file.tar"
04-23-2011 10:39 PM
uuencode file.tar file.tar | mailx -m -s "file.tar"
-m means "Do not add MIME header lines". Newer versions of Micro$oft exchange, for some reason, do not like these headers, as I came to realize.
Hope this helps
UNIX because I majored in cryptology...
04-24-2011 04:03 AM
uuencode file.tar file.bin| mailx -s "file.tar"
uuencode file.tar file | mailx -s "file.tar"
Unless its that the tar format that can't be converted. Try a plan ascii file.
04-24-2011 04:10 AM
should find many old threads on this topic.
> [...] is being received but the attachment
> is missing.
It "is being received" where? Read using
what? Note that this (very old) "uuencode"
scheme does not yield a MIME-compliant
message, and some modern e-mail client
programs may not know what to do with it.
MIME-compliant alternatives exist.
05-04-2011 10:54 AM
The script runs on HPUX and Linux.
It creates a multipart mime email, and can support a body, as well as an attachemnt.
The attachment can be any file, binary or text.
## mail_mime_attachment -h
usage: mail_mime_attachment \
[-s subject] \
# if no -b, then uses standard input
[-c CC: address] \
[-bc BCC: address] \
-t addressee name \
-a e-mail address
It uses sendmail directly.
It also uses 'base64', which is not part of HPUX, but which can be downloaded for free and 'make'ed, if you have a C compiler.
05-04-2011 10:56 AM