Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Save more on your purchases! discount-offer-chevron-icon
Savings automatically calculated. No voucher code required.
Arrow left icon
All Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Newsletter Hub
Free Learning
Arrow right icon
timer SALE ENDS IN
0 Days
:
00 Hours
:
00 Minutes
:
00 Seconds
Arrow up icon
GO TO TOP
Mastering Google App Engine

You're reading from   Mastering Google App Engine Build robust and highly scalable web applications with Google App Engine

Arrow left icon
Product type Paperback
Published in Oct 2015
Publisher
ISBN-13 9781784396671
Length 368 pages
Edition 1st Edition
Languages
Arrow right icon
Toc

Summary


In this chapter, we looked at how e-mails work at a very high level. We saw that SMTP is a text-based protocol and the SMTP servers listen on port 587 for the e-mail clients to access them. E-mails, if on the same server, are just copied to the destined user's inbox. If they are on a different server, a DNS lookup is performed to find out the IP of the SMTP server and the e-mail is handed over to that server.

Next, we saw how to send e-mails. We saw that send_email() is the function that we can use. We also saw that EmailMessage is a class whose instance can be created and used to send an e-mail. We learned that both the function and the EmailMessage class's constructor take the same keyword arguments. We also learned how to send attachments with our e-mails.

After that, we learned how to send e-mail headers. We examined the available headers that are allowed in Google App Engine.

Once done with all aspects of sending e-mails, we focused our attention on receiving e-mails. We learned...

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at £13.99/month. Cancel anytime
Visually different images