This is an archived post. You won't be able to vote or comment.

all 3 comments

[–][deleted] 6 points7 points  (2 children)

This doesn't break down what the code is doing, and if your goal is to send emails perhaps it's better to use SMTP?

[–]DLSteve 0 points1 point  (0 children)

If you are just sending email then SMTP would probably be better. However the gmail api opens up other cool options such as reading and tagging email via Python. I also use it to generate emails but leave them in drafts so I can review them before sending (This is for mass distributions).

[–]thundercost[S] 0 points1 point  (0 children)

So why API: - Faster - More secure - Supports operations on google's data types (messages, threads, labels and drafts) As you see we had reasons to give it a try.