Thanks to visit codestin.com
Credit goes to www.scribd.com

0% found this document useful (0 votes)
142 views2 pages

Raspberry Pi SMTP Mail Setup

The document provides instructions for setting up SMTP email on a Raspberry Pi by installing packages like ssmtp, mailutils, and mpack and configuring ssmtp.conf with Gmail credentials. It also shows how to use the mail command to send basic emails and mpack to send attachments.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
142 views2 pages

Raspberry Pi SMTP Mail Setup

The document provides instructions for setting up SMTP email on a Raspberry Pi by installing packages like ssmtp, mailutils, and mpack and configuring ssmtp.conf with Gmail credentials. It also shows how to use the mail command to send basic emails and mpack to send attachments.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 2

TNETRaspberryPiPages

Home MySetup Resources News Projects/Code FAQs Contact

RaspberryPiProjects>FAQsandHowTos>SMTPMailSetup

SMTPMailSetup
ManytimesyouwanttohavetheabilitytosendemailfromprocessesonyourRaspberryPitoemail
addressesoutonthenetwork.AddingemailtoyourRaspberryPiisprettysimple.Youcanusethe
followingthreepackagesforsomesimplemailcapabilities.
Itisassumedthatyouhavenetworkingworkingalready...

Loadingthepackages
sudo apt-get install ssmtp
sudo apt-get install mailutils
sudo apt-get install mpack

SettingupthedefaultsforSSMTP
sudo nano /etc/ssmtp/ssmtp.conf
Noweditthefields:

[email protected]
AuthPass=userpass
FromLineOverride=YES
mailhub=smtp.gmail.com:587
UseSTARTTLS=YES

UsingEmailNow
echo "sample text" | mail -s "Subject" [email protected]

SendingAttachments
mpack -s "test" /home/pi/test/somefile.ext [email protected]

Copyright2015,allrightsreserved.Manage
PageCreationbyTNETusingBoltwirev3.4.16HostingbyTNETViews#3105UlteriusServer
IP:46.208.197.157[157.197.208.46.dyn.plus.net]WedAug507:37:402015

You might also like