Install software:
opkg update opkg install ssmtp mv /etc/ssmtp/ssmtp.conf /etc/ssmtp/ssmtp.conf.bk nano /etc/ssmtp/ssmtp.conf
[email protected] mailhub=smtp.gmail.com:587 rewriteDomain= [email protected] UseSTARTTLS=YES [email protected] AuthPass=XXX FromLineOverride=YES
Install software:
opkg update opkg install mutt
nano ~/.muttrc set sendmail = /usr/sbin/ssmtp
Send email via Gmail server:
echo "body of email" | mutt -s "subject of email" [email protected]
Send email with attachment via Gmail server:
echo "body of email" | mutt -s "subject of email" -a /file/to/attach.txt [email protected]
Comments powered by CComment