yum install ssmtp
setelah selesai instal, lakukan editing terhadap file configurasinya :
mcedit /etc/ssmtp/ssmtp.confdan isikan dengan
root=username@gmail.com mailhub=smtp.gmail.com:587 rewriteDomain= hostname=username@gmail.com UseSTARTTLS=YES AuthUser=username AuthPass=password FromLineOverride=YESTesting
Create message.txt with and fill with
Subject: Message for you Message text starts here.
and run ssmtp with bellow command and check your inbox :D
ssmtp diantokam@slackware.com < /tmp/ssmtp.txt
No comments:
Post a Comment