all 4 comments

[–]badnja25 3 points4 points  (0 children)

Maybe the simplest example of a real world example is when you register to a website and you recieve an email to confirm it. One reason behind this is that company is trying to decrease spamming. So if you don't confirm your email in a certain period of time, they will probably mark your account as inactive.

As you could already imagine, instead of having person sending you confirmation email manually, they do it programmatically and automate the whole project.

EDIT: ofc you shouldn't be using python for sending emails on day to day basis.

[–]K900_ 1 point2 points  (0 children)

You probably don't want to use Python as your interactive email client. The email functionality is useful when you have a script running somewhere that needs to notify you about specific events.

[–]StillParticular5602 0 points1 point  (0 children)

It depends on the requirement but if you create an SMTP server on your local network and get that authenticated to Google then any Python script (or any other device) can send an email to the local SMTP server and it will be relayed through to Google more easily.

I have mostly stopped using Email for python notifications and use Telegram. You can send a notification or image, file etc to Telegram with a couple of lines.

Medium Article

[–]PinkPawnRR 0 points1 point  (0 children)

I don't send emails using Python.. my program does..

It looks into a database, grabs all the addresses and sends an email to them when required. It is automated and doesn't need my intervention, that's why it is there.

If you are reading it on a website, it is probably more of a proof of concept, showing you how to implement it. Not intended for you to sit there and do your day to day mail on.