K
K
karibskii_koks2017-03-07 13:01:11
linux
karibskii_koks, 2017-03-07 13:01:11

How to send email via Linux CLI?

Hello, I want to use Cron to send messages to e-mail every day.
Please tell me a lightweight mailer to which you can attach a gmail account through which it will send messages.

Answer the question

In order to leave comments, you need to log in

3 answer(s)
A
Axian Ltd., 2017-03-07
@karibskii_koks

IMHO one of the possible "correct" options:
install postfix+stunnel4
configure smtp_generic_map
send mail to a local queue with the sendmail command
----------------
This will:
1. Unload the application that sends mail
2. Ensure guaranteed delivery to the provider's server
3. Add and manage more than one email address.

N
nekipelov, 2017-03-07
@nekipelov

Worth a look at msmtp. Very easy to set up.

D
Dmitry Ras.su, 2017-03-16
@rassu

Easily done through the ssmtp configuration, it allows you to change the from address, etc. things.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question