Jean Louis <bugs@gnu.support> ha escrit: > cat text-file | mail -E"set sendmail=\"sendmail:$HOME/bin/sendmail\"" > --alternative -s "Something here" --content-type=text/html -A html-file > --content-type=text/plain s...@example.com > > And it gives me how it should be. If you have any comment on that last > line, please tell me. I would maybe improve it like:
That's correct. See http://mailutils.org/manual/html_node/MIME.html for a discussion on how the --content-type option affects the mail being composed. > cat text-file | mail -a "From: suppo...@rcdwealth.com" "-E"set > sendmail=\"sendmail:$HOME/bin/sendmail\"" --alternative -s "Something here" > --content-type=text/html --content-name "HTML message" -A html-file > --content-name "Test message" --content-type=text/plain s...@example.com > > But I do not see that attachments are named. As a matter of fact, they are. The above command produces this header for the second part: Content-Type: text/html; charset=iso-8859-1; name="HTML message" > additionally it would be good to elimiate piping totally. Do you know > solution for that? mail -a "From: suppo...@rcdwealth.com" \ "-E"set sendmail=\"sendmail:$HOME/bin/sendmail\"" \ --alternative -s "Something here" \ --content-type=text/html --content-name "HTML message" \ -A html-file --content-name "Test message" \ --content-type=text/plain s...@example.com < text-file Regards, Sergey