Re: How to specify sendmail on command line?

Jean Louis <[email protected]>
Newsgroups gmane.comp.gnu.mailutils.bugs
Message-ID <X5/[email protected]>
* Sergey Poznyakoff <[email protected]> [2020-11-02 13:59]:
> Jean Louis <[email protected]> ha escrit:
> 
> > echo Text | mail -E'set sendmail="~/bin/sendmail"' -s "Something here" --content-filename=text/html -A html-file [email protected]
> 
> Use this instead:
> 
>   mail -E"set sendmail=\"sendmail:$HOME/bin/sendmail\"" ...

Oh, yes, as there could be different scheme like SMTP.

> 2. The tilde character is not expanded within URLs (whether it should
> or not is another matter), so you have to use the $HOME variable to
> expand to the absolute pathname of your homedir.

No need for me to use tilde. I can use full path.

> 3. Single quotes would prevent expansion of $HOME.  Double-quotes must
> be used instead.  Correspondinly, any occurrence on double-quote within
> the string must be escaped.

That is right, thank you. I am testing.

Is it possible to specify CC, Bcc on command line? Or must be in
header?
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.