Link to home
Start Free TrialLog in
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
Avatar of noci
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.
Avatar of lucisit

ASKER

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

Regards.

Luciano
ASKER CERTIFIED SOLUTION
Avatar of noci
noci

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
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
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
Avatar of 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