Hi,
I want to specify the recipients and the subject to a file and mail program can read this info from this file.
From man pages I read that "-t" option is used:
"The message to be sent is expected to contain a message header with 'To:', 'Cc:', or 'Bcc:' fields giving its recipients.
Recipients specified on the command line are ignored."
I specify the recipients in the file as below:
[root@suitecrm ~]# cat example
From:
me@myhost.com
To:
user@example.com
Hi, this is my message, and I'm sending it to you!
.
[root@suitecrm ~]#
and I give the command:
[root@suitecrm ~]# mail -s test -q example -t <<<EOF
but it does not read the recipients:
[root@suitecrm ~]# mail -s test -q example -t <<<EOF
No recipients specified
"/root/dead.letter" 14/286
[root@suitecrm ~]#
Please help me how to configure the recipients in the file.
Thank you