Install
openclaw skills install simple-smtp-mailSend emails via SMTP using the msmtp command-line tool configured in ~/.msmtp/config for authentication and server settings.
openclaw skills install simple-smtp-mailSend emails via SMTP using msmtp command-line tool.
Create a configuration file at ~/.msmtp/config with the following format:
account default
host <SMTP_SERVER>
port <PORT>
tls on
tls_starttls off
auth on
user <EMAIL_ADDRESS>
password <PASSWORD>
from <EMAIL_ADDRESS>
Gmail:
smtp.gmail.com465 (SSL) or 587 (TLS)QQ Mail:
smtp.qq.com465Outlook/Hotmail:
smtp.office365.com587163.com:
smtp.163.com465macOS:
brew install msmtp
Linux (Debian/Ubuntu):
sudo apt install msmtp
Linux (Fedora/RHEL):
sudo dnf install msmtp
Edit ~/.msmtp/config:
nano ~/.msmtp/config
chmod 600 ~/.msmtp/config
echo "Body text" | msmtp recipient@example.com
echo -e "Subject: Your Subject\n\nBody text" | msmtp recipient@example.com
echo -e "Subject: Your Subject\nFrom: your@email.com\n\nBody text" | msmtp recipient@example.com
echo -e "Subject: Your Subject\nContent-Type: text/html; charset=UTF-8\n\n<html>...</html>" | msmtp recipient@example.com
Check if SMTP server is reachable:
msmtp --file=~/.msmtp/config --serverinfo
--file flagtls_certcheck off in config (not recommended for production)