[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: How to specify sendmail on command line?
From: |
Sergey Poznyakoff |
Subject: |
Re: How to specify sendmail on command line? |
Date: |
Mon, 02 Nov 2020 16:17:36 +0200 |
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 ss@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: support1@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 ss@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: support1@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 ss@example.com < text-file
Regards,
Sergey