1833793 Members
2423 Online
110063 Solutions
New Discussion

sendmail: cc and bcc

 
Juerg DENNEBERG
Advisor

sendmail: cc and bcc

Hi
How do I have to modify the following script that cc and bcc also get a copy of my file?
Many Regards and Thanks
Juerg Denneberg

#!/usr/bin/sh

export EMAIL_TO=huq
export EMAIL_FROM=juerg@ch.com
export EMAIL_CC=dej
export EMAIL_SUBJECT="Ertrag"
# export EMAIL_BODY=/prog/aris_prod/sql/cmnkont.txt

{
echo To: $EMAIL_TO
echo From: $EMAIL_FROM
echo CC: $EMAIL_CC
echo Subject: $EMAIL_SUBJECT
# cat $EMAIL_BODY
uuencode DLE.pdf Dienstleistungsertrag.pdf
} | /usr/sbin/sendmail $EMAIL_TO
The personal liberty goes so far as it does not affect the liberty of others
2 REPLIES 2
Pete Randall
Outstanding Contributor

Re: sendmail: cc and bcc

Jordan Bean
Honored Contributor

Re: sendmail: cc and bcc


sendmail -t <From: $FROM
To: $TO
Cc: $CC
Bcc: $BCC
Subject: $SUBJECT

$BODY_TEXT

$(uuencode $FILE_SOURCE $FILE_NAME)

EOM