fetchmail is a full-featured IMAP and POP client Install sudo apt-get install fetchmail Configure How Mail Is Handled Now create a file named ~/.fetchmailrc in your home directory. sudo nano Enter this: poll imap.gmail.com protocol IMAP user "[email protected]" with password "TheGmailPassword" mda "/home/pi/myfetchmailparser.sh" folder 'INBOX' fetchlimit 1 #keep ssl Fetchmail by default will try and […]
Category: Email
ssmtp to send emails
ssmtp is a nice and simple solution for sending emails from the command line etc. Installing sudo apt-get install ssmtp sudo apt-get install mailutils Now edit the SSMTP configuration file sudo nano /etc/ssmtp/ssmtp.conf It needs to include this: root=postmaster mailhub=smtp.gmail.com:587 hostname=raspberrypi [email protected] AuthPass=TheGmailPassword FromLineOverride=YES UseSTARTTLS=YES Save and exit Sending an email echo "Hello world email […]