How to read a file and send email to Recipients

0

I am really hoping someone can help me out with this. I have a text file with about 30 email addresses. The file will change every day. I want an easy command-line way to read the file and blind copy send an email to the addresses in the file. So far, I have this working with just a plain send using the command below.

mailx -s "Test Emails" -b `cat mylist.txt` < body.txt -r "No-Reply<no-reply@email.com>"

Of course, when I use a plain send, everybody sees everybody else's email address so I would love to be able to do a blind copy send. Would really appreciate any help.

Software Info

Posted 2019-04-09T21:46:35.643

Reputation: 1

No answers