Unable to send with Sendmail

"Vishnu V. Krishnan" <[email protected]>
Newsgroups gmane.comp.kde.users.pim
Message-ID <2071106.jaCrcmH00x@latt>
Hi!

I'm using KMail v5.8.3. I have a couple of mail accounts, with sending 
configured using 'msmtp'. I am able to send emails on all of those accounts, 
via command-line, choosing each account as follows:

    $ echo "<Message>" | msmtp --account=<account_name> [email protected]

But when I configure KMail to use this under Settings > Accounts > Sending, as 
a 'Sendmail'-like account (click on 'Add' in the same settings dialog), I get 
the error notification:

    E-Mail Sending Failed
    Failed to transport message. Failed to execute mailer program /usr/bin/
msmtp --account=<account_name>

Then again, it does work in one particular case. I have three accounts, and 
the msmtp configuration allows you to choose one of your accounts as the 
default. For the default account, the sendmail setting (in Kmail) is just '/
usr/bin/msmtp' (without the --account=<account_name>). And in that case it is 
able to send it.

What am I doing wrong?

Thanks!
Vishnu
-- 
⚷ OpenPGP: 5015 1D4C 9BDF 9062 A9E1 62CB 5B1F4BEE7EED7131
signature.asc (application/pgp-signature, 488 B)
-----BEGIN PGP SIGNATURE-----

iQEzBAABCAAdFiEEUBUdTJvfkGKp4WLLWx9L7n7tcTEFAltzKQQACgkQWx9L7n7t
cTF4JQgAs/XFDSKVSzUjJdKnuTJzK3ehN2NGHEfkiKLVBcbtk33wf7z+PfhFg+rR
CopdPHvDUhNMHF2Uu69wYPNX/d5ImUF35SopPzvojCT2YWPzQA+0Zp8GdQ70+yz3
LjYw6qfFDRAQ8Nfbd/4kw0Upx+L3KTYGElMyXc0UsL116ov9Chb9UzckomNrERYj
qTs25H+mZPjuLhiet3pr3bOQ9OVSIHCNssGUEwZonhqiQmNR/OnjGZOxDIBpsD+k
2GqOwuAXWfJBKw4pZgy7tFfY0OwZ5+kWZy9tKEUiVfwqnvfcs6F+/nnPFzknlmF3
r/vNw4C7y9G1P52Oe858F13rSOng4Q==
=76HT
-----END PGP SIGNATURE-----
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.