First :
sudo -s
apt-get install msmtp
We'll open kate editor
sudo kate
And we'll paste this inside :
######################################################################
# MSMTP Configuration basique via gmail
######################################################################
#account name
account poluxgmail
#lgmail smtp
host smtp.gmail.com
#crypt?
tls on
#check certificate ?here off
tls_certcheck off
#port to open with gmail
port 587
#login authentification
auth login
from YourmailGmail@gmail.com
#yourGmail login
user YourmailGmail@gmail.com
#your Gmail password
password YourGmailPassword
#msmtp default account
account default : poluxgmail
Save the file to /etc/msmtprc
w'ell create a "test.txt" file and test msmtp with this command line :
cat /home/polux/Documents/test.txt | YourMailGmail@gmail.com
That should work ;)
How to send enclosed files with msmtp and mutt here
Aucun commentaire:
Enregistrer un commentaire