# copy this file to ~/.msmtprc   (chmod 600 ~/.msmtprc)
# expects some passwords in environment variables
defaults
    auth             on
    tls              on
    logfile          ~/.msmtp.log

# account 1: Unix/Linux mail server
account        myserver
host           mail.example.com
port           587
from           script@example.com
user           script@example.com
passwordeval   echo "$SMTP_PASS"

# account 2: Gmail with app password
account        gmail
host           smtp.gmail.com
port           587
from           myname@gmail.com
user           myname@gmail.com
passwordeval   echo "$GMAIL_APP_PASSWORD"

# use this account per default
account default : myserver
