How do you send an email to multiple recipients in shell script?

Nguyễn Hào

New member
How do you send an email to multiple recipients in shell script?
Answer
Use
option -t for sendmail. in your case – echo -e $mail | /usr/sbin/sendmail -t and add yout Recepient list to message itself like To:
[email protected]
[email protected]
right after the line From:….. -t option means – Read message for recipients.
 

Tìm kiếm

Back
Top