Here, we are going to learn how to send a simple basic mail using Python code. Python you need to pass your Gmail account credentials in the login instance..