Hi All,
I have a requirement to send and email of body html with an attachment.
concatinating uuencode output to the mail body with mailx command works, but as my Email body is of HTML type i use sendmail.
my command to send HTML body is as below:
export MAILTO="recipient@domain.com"
export CONTENT="./html/body.html"
export SUBJECT="TEST EMAIL: TESTING HTML"
(
echo "From: noreply@domain.com"
echo "To: $MAILTO"
echo "Subject: $SUBJECT"
echo "MIME-Version: 1.0"
echo "Content-Type: text/html"
echo "Charset: iso-8859-1"
echo "Content-Disposition: inline"
cat $CONTENT
) | /usr/sbin/sendmail -t
With the above command I can send html body contents through send mail.
But, to the above scenario I need even the attachment.
Please help me out for this.
Thanks,
Mohan Kumar CS