Can some one help me with the command to sent attachment using mailx .
Is it possible and if it is , is there any limitation of the size ?
Thanks
RC
man uuencode
>
> Is it possible and if it is , is there any limitation of the size ?
After uuencoding you can splitt the file into a size which is supported
by all processes and resources meaning from a technical/theoretical
point of view the file size is almost unlimited.
But who likes to get a 4,5 GB email where its mail directory is on a
2GB limited FS
hth
Hajo
Ya definetly not in GB's but in MB's. So if the restriction is only for
GB's then it's ok .
So what about ascii files.!
So do not care about the file type meaning use uuencode allways. This
way you do not have to care about special characters like ^M (
ctrl-v,ctrl-m ) and the processing atthe receiver side canbe done
automaticly
Thus we go the Unix way and see everything as a data stream .
Sure for short messages i would not use uudecode but i think you are
talking about large files.
hth
Hajo
sol
ATTATCH="file1.txt file2.txt file3.txt"
SUPPORTMAILTO="me@my_domain.com"
MAILTO="you@your_domain.com"
MSG="This is an attahcment test!!!"
fn_sendmail()
{
# Build sendmail header.
echo "From: $SUPPORTMAILTO"
echo "To: $MAILTO"
echo "Subject: ${MSG}"
echo "X-MSMail-Priority: High"
echo "importance: 1"
echo "Mime-Version: 1.0"
echo "Content-Type: text/plain"
echo
echo
echo "Hi, Please find attached ${ATTACH}"
echo
echo
# uuencode the attachments.
for k in ${ATTACH}
do
uuencode $k $k
done
}
fn_sendmail | sendmail -t -oi
HTH
Mark Taylor