When using mutt to send files and emails with bash.....
one of the things i noticed right away on my suse systems is that you MUST have in your
.muttrc file a spot that says
set from=
# Sample ~/.muttrc for SuSE Linux
# Setting
set from="youremailaddresshere@youremailprovider.com"
set pager_context=4
set pager_index_lines=10
set pager_stop
If you DON'T have that set from= set....you will end up with errors that say.....
Bad IDN in "from": '(null)' or something to that effect.....
Just thought i'd pass it along to anyone trying to use mutt in a shell script and they run into that error
format for sending mail in shell scripts with mutt is .....
Code:
mutt -a $ATTFILE -s "$SUBJECT" $MAILTO < $TXTFILE
Hope that helps someone else besides me
