SlideShare a Scribd company logo
1 of 18
Emails
from the
Door Bell Camera
Sending emails
from the Raspberry
Pi
Raspbian configuration
Installing and configuring
SSMTP
Make sure your repositories are up-to-
date:
sudo apt-get update
Install SSMTP and mail
utilities:
sudo apt-get install ssmtp
sudo apt-get install mailutils
Edit the SSMTP configuration file:
for Gmail
sudo nano /etc/ssmtp/ssmtp.conf
edit the ssmtp.conf
your GMail address
your GMail address
matching password
add this 3 lines
Allowing less secure apps to access your
account
https://support.google.com/accounts/answer/6010255
2 ways to send an text email
echo "Hello world email body" | mail -s "Test Subject"
recipientname@domain.com
mail -s "Message from your Door Bell" recipientname@domain.com < message.txt
body
body
Sending an attachment file
echo "Image attached" | mail -A Maja10.jpg -s โ€œDoor Bell"
recipientname@domain.com
Building the project
for
Emails
from the
Door Bell Camera
Hardware setup
Door Bell
Raspicam
Button
Blue Jumper Wire -> Ground
Orange Jumper Wire -> Pin 1
Starting Point
camera with button
Standard image size
The code produces an image with the size
of about 2.7MB
Gmail restriction for attachment: 25MB
Inside the C program using the mail command
and system function you can send the mail to the
user.
system(โ€œmail -A Maja10.jpg -s โ€˜Door Bellโ€™ hello@gmail.com <
message.txtโ€)
The final Code
The Email arrives
after about a minute

More Related Content

Viewers also liked

Viewers also liked (15)

Historia de la Informรกtica
Historia de la InformรกticaHistoria de la Informรกtica
Historia de la Informรกtica
ย 
Guia do Participante - TEDxUFSCar 2016
Guia do Participante - TEDxUFSCar 2016Guia do Participante - TEDxUFSCar 2016
Guia do Participante - TEDxUFSCar 2016
ย 
10 Year of Apple iPhone Journey
10 Year of Apple iPhone Journey10 Year of Apple iPhone Journey
10 Year of Apple iPhone Journey
ย 
Cรณmo superar los obstรกculos al crear una empresa - Lucila Usuga
Cรณmo superar los obstรกculos al crear una empresa - Lucila UsugaCรณmo superar los obstรกculos al crear una empresa - Lucila Usuga
Cรณmo superar los obstรกculos al crear una empresa - Lucila Usuga
ย 
In pursuit of emotions at the workplace
In pursuit of emotions at the workplaceIn pursuit of emotions at the workplace
In pursuit of emotions at the workplace
ย 
Mery
MeryMery
Mery
ย 
2016ๆฏ่ฆช็ฏ€ไธŠๅ„„ๅ•†ๆฉŸๅ“ช่ฃกๆถ๏ผŸ
2016ๆฏ่ฆช็ฏ€ไธŠๅ„„ๅ•†ๆฉŸๅ“ช่ฃกๆถ๏ผŸ2016ๆฏ่ฆช็ฏ€ไธŠๅ„„ๅ•†ๆฉŸๅ“ช่ฃกๆถ๏ผŸ
2016ๆฏ่ฆช็ฏ€ไธŠๅ„„ๅ•†ๆฉŸๅ“ช่ฃกๆถ๏ผŸ
ย 
Stimulation
StimulationStimulation
Stimulation
ย 
Untitled.fr11
Untitled.fr11Untitled.fr11
Untitled.fr11
ย 
Worst practices w mediach spoล‚ecznoล›ciowych
Worst practices w mediach spoล‚ecznoล›ciowychWorst practices w mediach spoล‚ecznoล›ciowych
Worst practices w mediach spoล‚ecznoล›ciowych
ย 
Building a community for a B2C mobile application
Building a community for a B2C mobile applicationBuilding a community for a B2C mobile application
Building a community for a B2C mobile application
ย 
Countertop & Ceramic Stovetop Care Guide
Countertop & Ceramic Stovetop Care GuideCountertop & Ceramic Stovetop Care Guide
Countertop & Ceramic Stovetop Care Guide
ย 
Building for scale
Building for scaleBuilding for scale
Building for scale
ย 
Prepare for Speech Success - Tips, Tricks and Hacks
Prepare for Speech Success - Tips, Tricks and HacksPrepare for Speech Success - Tips, Tricks and Hacks
Prepare for Speech Success - Tips, Tricks and Hacks
ย 
Deep Dive on AWS Lambda - January 2017 AWS Online Tech Talks
Deep Dive on AWS Lambda - January 2017 AWS Online Tech TalksDeep Dive on AWS Lambda - January 2017 AWS Online Tech Talks
Deep Dive on AWS Lambda - January 2017 AWS Online Tech Talks
ย 

Recently uploaded

Makarba ( Call Girls ) Ahmedabad โœ” 6297143586 โœ” Hot Model With Sexy Bhabi Rea...
Makarba ( Call Girls ) Ahmedabad โœ” 6297143586 โœ” Hot Model With Sexy Bhabi Rea...Makarba ( Call Girls ) Ahmedabad โœ” 6297143586 โœ” Hot Model With Sexy Bhabi Rea...
Makarba ( Call Girls ) Ahmedabad โœ” 6297143586 โœ” Hot Model With Sexy Bhabi Rea...
Naicy mandal
ย 
Kothanur Call Girls Service: ๐Ÿ“ 7737669865 ๐Ÿ“ High Profile Model Escorts | Bang...
Kothanur Call Girls Service: ๐Ÿ“ 7737669865 ๐Ÿ“ High Profile Model Escorts | Bang...Kothanur Call Girls Service: ๐Ÿ“ 7737669865 ๐Ÿ“ High Profile Model Escorts | Bang...
Kothanur Call Girls Service: ๐Ÿ“ 7737669865 ๐Ÿ“ High Profile Model Escorts | Bang...
amitlee9823
ย 
(๐Ÿ‘‰Ridhima)๐Ÿ‘‰VIP Model Call Girls Mulund ( Mumbai) Call ON 9967824496 Starting ...
(๐Ÿ‘‰Ridhima)๐Ÿ‘‰VIP Model Call Girls Mulund ( Mumbai) Call ON 9967824496 Starting ...(๐Ÿ‘‰Ridhima)๐Ÿ‘‰VIP Model Call Girls Mulund ( Mumbai) Call ON 9967824496 Starting ...
(๐Ÿ‘‰Ridhima)๐Ÿ‘‰VIP Model Call Girls Mulund ( Mumbai) Call ON 9967824496 Starting ...
motiram463
ย 
CALL GIRLS IN Saket 83778-77756 | Escort Service In DELHI NcR
CALL GIRLS IN Saket 83778-77756 | Escort Service In DELHI NcRCALL GIRLS IN Saket 83778-77756 | Escort Service In DELHI NcR
CALL GIRLS IN Saket 83778-77756 | Escort Service In DELHI NcR
dollysharma2066
ย 
Call Girls Banashankari Just Call ๐Ÿ‘— 7737669865 ๐Ÿ‘— Top Class Call Girl Service ...
Call Girls Banashankari Just Call ๐Ÿ‘— 7737669865 ๐Ÿ‘— Top Class Call Girl Service ...Call Girls Banashankari Just Call ๐Ÿ‘— 7737669865 ๐Ÿ‘— Top Class Call Girl Service ...
Call Girls Banashankari Just Call ๐Ÿ‘— 7737669865 ๐Ÿ‘— Top Class Call Girl Service ...
amitlee9823
ย 
๐Ÿ” 9953056974๐Ÿ” Delhi Call Girls in Ajmeri Gate
๐Ÿ” 9953056974๐Ÿ” Delhi Call Girls in Ajmeri Gate๐Ÿ” 9953056974๐Ÿ” Delhi Call Girls in Ajmeri Gate
๐Ÿ” 9953056974๐Ÿ” Delhi Call Girls in Ajmeri Gate
9953056974 Low Rate Call Girls In Saket, Delhi NCR
ย 
Escorts Service Arekere โ˜Ž 7737669865โ˜Ž Book Your One night Stand (Bangalore)
Escorts Service Arekere โ˜Ž 7737669865โ˜Ž Book Your One night Stand (Bangalore)Escorts Service Arekere โ˜Ž 7737669865โ˜Ž Book Your One night Stand (Bangalore)
Escorts Service Arekere โ˜Ž 7737669865โ˜Ž Book Your One night Stand (Bangalore)
amitlee9823
ย 
Develop Keyboard Skill.pptx er power point
Develop Keyboard Skill.pptx er power pointDevelop Keyboard Skill.pptx er power point
Develop Keyboard Skill.pptx er power point
Getawu
ย 
Call Now โ‰ฝ 9953056974 โ‰ผ๐Ÿ” Call Girls In Yusuf Sarai โ‰ผ๐Ÿ” Delhi door step delevryโ‰ผ๐Ÿ”
Call Now โ‰ฝ 9953056974 โ‰ผ๐Ÿ” Call Girls In Yusuf Sarai โ‰ผ๐Ÿ” Delhi door step delevryโ‰ผ๐Ÿ”Call Now โ‰ฝ 9953056974 โ‰ผ๐Ÿ” Call Girls In Yusuf Sarai โ‰ผ๐Ÿ” Delhi door step delevryโ‰ผ๐Ÿ”
Call Now โ‰ฝ 9953056974 โ‰ผ๐Ÿ” Call Girls In Yusuf Sarai โ‰ผ๐Ÿ” Delhi door step delevryโ‰ผ๐Ÿ”
9953056974 Low Rate Call Girls In Saket, Delhi NCR
ย 

Recently uploaded (20)

Makarba ( Call Girls ) Ahmedabad โœ” 6297143586 โœ” Hot Model With Sexy Bhabi Rea...
Makarba ( Call Girls ) Ahmedabad โœ” 6297143586 โœ” Hot Model With Sexy Bhabi Rea...Makarba ( Call Girls ) Ahmedabad โœ” 6297143586 โœ” Hot Model With Sexy Bhabi Rea...
Makarba ( Call Girls ) Ahmedabad โœ” 6297143586 โœ” Hot Model With Sexy Bhabi Rea...
ย 
Kothanur Call Girls Service: ๐Ÿ“ 7737669865 ๐Ÿ“ High Profile Model Escorts | Bang...
Kothanur Call Girls Service: ๐Ÿ“ 7737669865 ๐Ÿ“ High Profile Model Escorts | Bang...Kothanur Call Girls Service: ๐Ÿ“ 7737669865 ๐Ÿ“ High Profile Model Escorts | Bang...
Kothanur Call Girls Service: ๐Ÿ“ 7737669865 ๐Ÿ“ High Profile Model Escorts | Bang...
ย 
Top Rated Pune Call Girls Ravet โŸŸ 6297143586 โŸŸ Call Me For Genuine Sex Servi...
Top Rated  Pune Call Girls Ravet โŸŸ 6297143586 โŸŸ Call Me For Genuine Sex Servi...Top Rated  Pune Call Girls Ravet โŸŸ 6297143586 โŸŸ Call Me For Genuine Sex Servi...
Top Rated Pune Call Girls Ravet โŸŸ 6297143586 โŸŸ Call Me For Genuine Sex Servi...
ย 
9892124323, Call Girl in Juhu Call Girls Services (Rate โ‚น8.5K) 24ร—7 with Hote...
9892124323, Call Girl in Juhu Call Girls Services (Rate โ‚น8.5K) 24ร—7 with Hote...9892124323, Call Girl in Juhu Call Girls Services (Rate โ‚น8.5K) 24ร—7 with Hote...
9892124323, Call Girl in Juhu Call Girls Services (Rate โ‚น8.5K) 24ร—7 with Hote...
ย 
Call Girls Pimple Saudagar Call Me 7737669865 Budget Friendly No Advance Booking
Call Girls Pimple Saudagar Call Me 7737669865 Budget Friendly No Advance BookingCall Girls Pimple Saudagar Call Me 7737669865 Budget Friendly No Advance Booking
Call Girls Pimple Saudagar Call Me 7737669865 Budget Friendly No Advance Booking
ย 
(๐Ÿ‘‰Ridhima)๐Ÿ‘‰VIP Model Call Girls Mulund ( Mumbai) Call ON 9967824496 Starting ...
(๐Ÿ‘‰Ridhima)๐Ÿ‘‰VIP Model Call Girls Mulund ( Mumbai) Call ON 9967824496 Starting ...(๐Ÿ‘‰Ridhima)๐Ÿ‘‰VIP Model Call Girls Mulund ( Mumbai) Call ON 9967824496 Starting ...
(๐Ÿ‘‰Ridhima)๐Ÿ‘‰VIP Model Call Girls Mulund ( Mumbai) Call ON 9967824496 Starting ...
ย 
Call Girls in Thane 9892124323, Vashi cAll girls Serivces Juhu Escorts, powai...
Call Girls in Thane 9892124323, Vashi cAll girls Serivces Juhu Escorts, powai...Call Girls in Thane 9892124323, Vashi cAll girls Serivces Juhu Escorts, powai...
Call Girls in Thane 9892124323, Vashi cAll girls Serivces Juhu Escorts, powai...
ย 
CALL GIRLS IN Saket 83778-77756 | Escort Service In DELHI NcR
CALL GIRLS IN Saket 83778-77756 | Escort Service In DELHI NcRCALL GIRLS IN Saket 83778-77756 | Escort Service In DELHI NcR
CALL GIRLS IN Saket 83778-77756 | Escort Service In DELHI NcR
ย 
9004554577, Get Adorable Call Girls service. Book call girls & escort service...
9004554577, Get Adorable Call Girls service. Book call girls & escort service...9004554577, Get Adorable Call Girls service. Book call girls & escort service...
9004554577, Get Adorable Call Girls service. Book call girls & escort service...
ย 
(=Towel) Dubai Call Girls O525547819 Call Girls In Dubai (Fav0r)
(=Towel) Dubai Call Girls O525547819 Call Girls In Dubai (Fav0r)(=Towel) Dubai Call Girls O525547819 Call Girls In Dubai (Fav0r)
(=Towel) Dubai Call Girls O525547819 Call Girls In Dubai (Fav0r)
ย 
Call Girls Chikhali Call Me 7737669865 Budget Friendly No Advance Booking
Call Girls Chikhali Call Me 7737669865 Budget Friendly No Advance BookingCall Girls Chikhali Call Me 7737669865 Budget Friendly No Advance Booking
Call Girls Chikhali Call Me 7737669865 Budget Friendly No Advance Booking
ย 
Top Rated Pune Call Girls Chakan โŸŸ 6297143586 โŸŸ Call Me For Genuine Sex Serv...
Top Rated  Pune Call Girls Chakan โŸŸ 6297143586 โŸŸ Call Me For Genuine Sex Serv...Top Rated  Pune Call Girls Chakan โŸŸ 6297143586 โŸŸ Call Me For Genuine Sex Serv...
Top Rated Pune Call Girls Chakan โŸŸ 6297143586 โŸŸ Call Me For Genuine Sex Serv...
ย 
9892124323 Pooja Nehwal Call Girls Services Call Girls service in Santacruz A...
9892124323 Pooja Nehwal Call Girls Services Call Girls service in Santacruz A...9892124323 Pooja Nehwal Call Girls Services Call Girls service in Santacruz A...
9892124323 Pooja Nehwal Call Girls Services Call Girls service in Santacruz A...
ย 
Call Girls Banashankari Just Call ๐Ÿ‘— 7737669865 ๐Ÿ‘— Top Class Call Girl Service ...
Call Girls Banashankari Just Call ๐Ÿ‘— 7737669865 ๐Ÿ‘— Top Class Call Girl Service ...Call Girls Banashankari Just Call ๐Ÿ‘— 7737669865 ๐Ÿ‘— Top Class Call Girl Service ...
Call Girls Banashankari Just Call ๐Ÿ‘— 7737669865 ๐Ÿ‘— Top Class Call Girl Service ...
ย 
๐Ÿ” 9953056974๐Ÿ” Delhi Call Girls in Ajmeri Gate
๐Ÿ” 9953056974๐Ÿ” Delhi Call Girls in Ajmeri Gate๐Ÿ” 9953056974๐Ÿ” Delhi Call Girls in Ajmeri Gate
๐Ÿ” 9953056974๐Ÿ” Delhi Call Girls in Ajmeri Gate
ย 
Escorts Service Arekere โ˜Ž 7737669865โ˜Ž Book Your One night Stand (Bangalore)
Escorts Service Arekere โ˜Ž 7737669865โ˜Ž Book Your One night Stand (Bangalore)Escorts Service Arekere โ˜Ž 7737669865โ˜Ž Book Your One night Stand (Bangalore)
Escorts Service Arekere โ˜Ž 7737669865โ˜Ž Book Your One night Stand (Bangalore)
ย 
NO1 Verified Amil Baba In Karachi Kala Jadu In Karachi Amil baba In Karachi A...
NO1 Verified Amil Baba In Karachi Kala Jadu In Karachi Amil baba In Karachi A...NO1 Verified Amil Baba In Karachi Kala Jadu In Karachi Amil baba In Karachi A...
NO1 Verified Amil Baba In Karachi Kala Jadu In Karachi Amil baba In Karachi A...
ย 
Develop Keyboard Skill.pptx er power point
Develop Keyboard Skill.pptx er power pointDevelop Keyboard Skill.pptx er power point
Develop Keyboard Skill.pptx er power point
ย 
Call Now โ‰ฝ 9953056974 โ‰ผ๐Ÿ” Call Girls In Yusuf Sarai โ‰ผ๐Ÿ” Delhi door step delevryโ‰ผ๐Ÿ”
Call Now โ‰ฝ 9953056974 โ‰ผ๐Ÿ” Call Girls In Yusuf Sarai โ‰ผ๐Ÿ” Delhi door step delevryโ‰ผ๐Ÿ”Call Now โ‰ฝ 9953056974 โ‰ผ๐Ÿ” Call Girls In Yusuf Sarai โ‰ผ๐Ÿ” Delhi door step delevryโ‰ผ๐Ÿ”
Call Now โ‰ฝ 9953056974 โ‰ผ๐Ÿ” Call Girls In Yusuf Sarai โ‰ผ๐Ÿ” Delhi door step delevryโ‰ผ๐Ÿ”
ย 
Book Sex Workers Available Pune Call Girls Yerwada 6297143586 Call Hot India...
Book Sex Workers Available Pune Call Girls Yerwada  6297143586 Call Hot India...Book Sex Workers Available Pune Call Girls Yerwada  6297143586 Call Hot India...
Book Sex Workers Available Pune Call Girls Yerwada 6297143586 Call Hot India...
ย 

Getting emails from your raspberry pi doorbell camera