bug-mailutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How to specify sendmail on command line?


From: Jean Louis
Subject: Re: How to specify sendmail on command line?
Date: Mon, 2 Nov 2020 14:54:08 +0300
User-agent: Mutt/+ (1036f0e) (2020-10-18)

I would like to make the message with multiparts, with text and html.

cat text-file | mail -E"set sendmail=\"sendmail:$HOME/bin/sendmail\"" 
--alternative -s "Something here" --content-type=text/html -A html-file 
ss@example.com

In that example I can see that I get multipart/alternative but I see
that content type for text part is text/html instead of maybe
text/plain

Then I have tried this option:

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:

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. Am I doing something wrong?

Should I use:

--append=HEADER: VALUE

to add Bcc or Cc fields? So I have tried it:

cat text-file | mail -a "From: support1@example.com" -a "Bcc: bugs@gnu.support" 
-E"set sendmail=\"sendmail:$HOME/bin/sendmail\"" --alternative -s "Subject 
here" --content-type=text/html --content-name "HTML message" -A html-file 
--content-name "Test message" --content-type=text/plain ss@example.com

I think Bcc/Cc/From works from command line.

additionally it would be good to elimiate piping totally. Do you know
solution for that?




reply via email to

[Prev in Thread] Current Thread [Next in Thread]