Ben Chuanlong Du's Blog

It is never too late to learn.

Tips on Microsoft Graph APIs

Things on this page are fragmentary and immature notes/thoughts of the author. Please read with your own judgement!

https://developer.microsoft.com/graph/graph-explorer

https://learn.microsoft.com/en-us/graph/use-the-api

List Mail Folders

https://graph.microsoft.com/beta/me/mailFolders?%24skip=40

from msgraph import GraphServiceClient
from msgraph …

Hands on the Python Library notifiers

Things on this page are fragmentary and immature notes/thoughts of the author. Please read with your own judgement!

Email

The function below is an example of sending email using the Python library notifiers.

import notifiers
notifiers.get_notifier("email").notify(
    from_="sender@domain.com",
    to=["recipient1@domain.com", "recipient2@domain …

Send Emails in Python

Things on this page are fragmentary and immature notes/thoughts of the author. Please read with your own judgement!

Use Standard Libraries smtplib and email

Below is a function for sending email leveraging standard libraries smtplib and email.

import smtplib
from email.mime.text import MIMEText


def send_email(recipient: Union …

Work More Efficiently with Email

Things on this page are fragmentary and immature notes/thoughts of the author. Please read with your own judgement!

  1. Do not use email+extra@gmail.com. This only makes things more complicated. Of course, it makes your accounts securer. Do not use it to subscribe emails!!!

  2. Not a good idea …