Link to home
Start Free TrialLog in
Avatar of Enhance Technology
Enhance TechnologyFlag for India

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/ServerBodLogs_2000.html`"<html><body>

<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
Avatar of Nancy Rindone
Nancy Rindone
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial