Enhance Technology
asked on
How to add CC in sendEmail (Linux)
Hello Experts,
I want add 1-2 or more emails in CC from this script but unable to do this, only i can send TOMAIL, please suggest.
#!/bin/bash
#requires: date,sendmail
MSGBODY=`cat /usr/bin/AUTO/BodLogs/Serv erBodLogs_ 2000.html` "<html><bo dy>
<hr/> <br/>
<br/>
<br/></body></html>"
sendEmail -t abc@abc.in $TOEMAIL -f cron@Test $FREMAIL -xu mylogs@gmail.com $SMTPUSER -xp abcd1234 $SMTPPASS -s smtp.gmail.com $SMTPIP -o $FREMAIL -o message-content-type=html -m "$MSGBODY" -u ServerBod2000 "$SUBJECT"
I want add 1-2 or more emails in CC from this script but unable to do this, only i can send TOMAIL, please suggest.
#!/bin/bash
#requires: date,sendmail
MSGBODY=`cat /usr/bin/AUTO/BodLogs/Serv
<hr/> <br/>
<br/>
<br/></body></html>"
sendEmail -t abc@abc.in $TOEMAIL -f cron@Test $FREMAIL -xu mylogs@gmail.com $SMTPUSER -xp abcd1234 $SMTPPASS -s smtp.gmail.com $SMTPIP -o $FREMAIL -o message-content-type=html -m "$MSGBODY" -u ServerBod2000 "$SUBJECT"
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.