I am at my wits end....
All I want to do is set the From using a command line mail in a script.
I have tried mutt, mail, mailx...
Here is on command I tried:
echo "Once again" | mail -s "Maybe this time" -A file.csv stevec@isonas.com -r 'John <john@company.com>' -a From:John\<john@company.com\>
And another:
mutt -e "set from=john@company.com"...
And another:
mutt -e "set from=john@company.com" -e "set realname=John"
My /etc/mailname
has the name I want too. I also tried configuring a muttrc file and that doesn't work
And another try:
mailx -r "DoNotReply@company.com" -a "From:DoNotReply@company.com" -s "Subject" -A "/opt/file.csv" "john@anothercompnay.com" <<< Some Text
Any ideas I can try?