Send-An-Email
Your goal for this challenge is to write a Python function to send a basic email notification.
Input
At a minimum the function should have input parameters for the receiving email address, a subject line, and the message body.
Output
- from EmailSender import send_email
- send_email(‘xxxxxxxxx@gmail.com’ , ‘Notification’ , ‘Everything is cool bro!’)
Check Gmail Account
Email should appear in inbox as shown in the figure below.
Tips
Keep in mind though, that some services may require you to configure your account security settings, to send an email from Python.
For gmail accounts:
- Switch on Less secure App Access as shown in the figure below.