Avatar of lucisit
lucisit
 asked on

Linux mail client

Hello, I’m looking for a linux mail client with the following features:
• Can  be started by cron authenticating with username and password against a MS Exchange server or other provider like google.
• Mail can be sent using commands and the commands can be included inside a shell
Thank you for helping me.
Regards
Luciano
LinuxLinux Networking

Avatar of undefined
Last Comment
lucisit

8/22/2022 - Mon
noci

Try cURL...
http://curl.haxx.se 

Curl can handle smtp submissions. It would be a little bit turned around as you use one curl command run from a script per message.
lucisit

ASKER
I was looking for something more direct.
Anyway thank you for the help.

Regards.

Luciano
ASKER CERTIFIED SOLUTION
noci

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
l4ncel0t

use fetchmail to get your mails

an introduction here:
fetchmail quick intro
it's really easy to configure

 and mail or mutt to send email.
echo "mail body" | mail  xxx@domain.com -s "subject"
you need to install a mail server before.
I like the simple configuration of postfix
Experts Exchange is like having an extremely knowledgeable team sitting and waiting for your call. Couldn't do my job half as well as I do without it!
James Murphy
noci

fetchmail is for reading & sending on, it seems to be just the initial sending.
the request was [ please correct me if i'am wrong ]  for a command line oriented mail sender with a whole bunch of options that the mailx package [ mail command ] doesn't  provide.

if you don't like curl this email project might do the trick for you as well.,

http://www.cleancode.org/projects/email/about
lucisit

ASKER
Hello, in my opinion  SSMTP is the easiest way to send a simple log mail. It does just what I need no more no less. Moreover I don't have in worry about dependencies (curl) or install a mail server to send a mail (fetchmail).<br />Thank you for helping me.<br /><br />Regards.<br /><br />Luciano