Learn how to setup your Raspberry Pi to be able to send Emails and build a camera project that can send Email alerts using the C language.
Related Course:
https://www.udemy.com/introduction-to-c-programming-for-the-raspberry-pi/?couponCode=FEB2017
9. Allowing less secure apps to access your
account
https://support.google.com/accounts/answer/6010255
10. 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
11. Sending an attachment file
echo "Image attached" | mail -A Maja10.jpg -s โDoor Bell"
recipientname@domain.com
15. Standard image size
The code produces an image with the size
of about 2.7MB
Gmail restriction for attachment: 25MB
16. 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โ)