Results 1 to 1 of 1
Thread: Problem using unix mail command
Enjoy an ad free experience by logging in. Not a member yet? Register.
- Join Date
- Feb 2009
Problem using unix mail command
When i am using mail command like this:
mail -r firstname.lastname@example.org -s "hiiii" email@example.com < Content.txt i am abl eto dend a mail. Content.txt is a file from which contents are being reda
But when i am trying to execute it thru a shell scipt like this it's giving
The flags you gave make no sense since you're not sending mail. The strange part is still sending the mail to me as desired, why is this message coming?
The shell script is this:
while read line
mail -r firstname.lastname@example.org -s "The CBE Alert Processor is not working in Development" $line < Content.txt
done < MailTo.txt
MailTo.txt contains email id's to which i want to send mail. Each id starts from new line
Please guide me where is the problem