diff --git a/projects/Send_Email/Readme.md b/projects/Send_Email/Readme.md new file mode 100644 index 000000000..faa3b7d18 --- /dev/null +++ b/projects/Send_Email/Readme.md @@ -0,0 +1,29 @@ +# Simplest Script To Send Email Using Python + +### Prerequisites + +Install yagmail library + +``` +pip3 install yagmail +``` + +### Running The Script:- + +The script requires:- +1. yourmail@gmail.com +2. Sender Name you want to display +3. Auth Password:- [Google Support Link] (https://support.google.com/accounts/answer/185833?hl=en) + Generate it using this process explained +4. sendermail@gmail.com +5. body message + +Once you have all these just run:- + +``` +python3 Send_Email.py +``` + +## *Abhay Partap Singh* :star_struck: +[Github] (https://github.com/abhaypartap12) +[LinkedIn] (https://www.linkedin.com/in/abhay-partap-singh-aa2898165/) diff --git a/projects/Send_Email/Send_Email.py b/projects/Send_Email/Send_Email.py new file mode 100644 index 000000000..8c2bc0229 --- /dev/null +++ b/projects/Send_Email/Send_Email.py @@ -0,0 +1,8 @@ +import yagmail + +body = "Hello" + +mail = yagmail.SMTP({"yourmail@gmail.com":"Sender Name"},"Auth Password") +mail.send(to="receiver@gmail.com",subject="Test Mail",contents=body) + +