[Mutt | CentOS 5.1] I have set up Mutt on CentOS and configured /etc/Muttrc and ~/.muttrc files. I can send email out without attachments, command:
echo $Message | mutt -s "WARNING $Subject" email@example.com
and this works well for corporate's email address, e.g.
echo $Message | mutt -s "WARNING $Subject" firstname.lastname@example.org
When sending email with attachments, weird results come out. I will explain in cases as below.
1> When send to personal email address (email@example.com), multiple files can be attached.
echo $Message | mutt -s "NORMAL $Subject" firstname.lastname@example.org \ -a test1.log -a test2.log
2> When send to corporate email address (email@example.com), emails cannot be sent out if files attached. (cmd similar as above). But the interesting thing is, if I attach the /root/install.log FIRST, the email can be sent out with attachments, cmd as below:
echo $Message | mutt -s "NORMAL $Subject" firstname.lastname@example.org \ -a /root/install.log -a test1.log -a test2.log
Case would fail to send if attachment order changed.
I cannot figure out where the problem exists from above cases, any configuration I may miss?