Xikkos
10th October 2002, 17:02
Hi all,
How can I send a file as attachment using sendmail ?
regards,
Francisco Campelo.
Markus Schmitz
10th October 2002, 17:37
Sendmail is purely for sending email in 7-bit ASCII.
If you want to send attachments you can
use "uuencode" to decode your attachment to 7-bit Ascii.
Most mail clients will handle this ok.
If you want to avoid any kind of problem, then you have to
use the MIME-Mail format. You can install "mpack" on your unix box to help you create MIME-Attachments.
For HP-Ux you get mpack as a precompile SD-package.
Regards
Markus
victor_cleto
10th October 2002, 19:52
Search for uuencode or sendmail, this was discussed some time ago.
NPRao
10th October 2002, 20:01
If you are on HP-Unix and like to use in a shell script.
filename=$1
email=$2
subject=$3
(echo "subject:" "$subject";uuencode $filename.dat $filename.csv) | /usr/bin/mail $email
frigyesg
15th October 2002, 17:57
Hi,
mutt has a commandline option to send an attachement using mime.
This mail client is free and available for the most unix/linux variants.
Example:
/usr/local/bin/mutt -a<attachfile> -s"Subject" recipient(s) <<EOF
Messagetext
EOF