Skip to main content

Mail Sending Using Tkinter

 Mail Sending Using Tkinter

In this Blog We will learn how to send email through tkinter. Tkinter provides GUI toolkit. With the help of this we can create so many GUI applications. 

In this blog we create the mail sending application using tkinter.

Steps of the project:

1. Import required packages and library

2. Create basic GUI

3. Add required widgets to GUI.

4. Create a function for mail sending.


1. Import required packages and library:



2. Create basic GUI:




3.  Add required widgets to GUI.:

4. Create a function for mail sending.








Output:


smtplib: smtplib is the python built in library for sending and receiving the mail. SMTP stands for Simple Mail Transfer Protocol. 

smtplib.SMTP(domain,port): In this method add domain which you want for example gmail.com. SMTP has three ports which are 25, 465 and 587 by using this three ports we can send the mail. 

smtplib.login(userid,password): This method logins to your account.And send mail from this email id. 

smtplib.sendmail(sender,to,message): This method actual send the mail. This method required three parameters email id of sender, email id of receiver, and body of mail.

Comments

Contact Form

Name

Email *

Message *

Popular posts from this blog

Rock Paper and Scissor Game Using Tkinter | Python |

 Rock Paper and Scissor Game Using Tkinter Hello Friends in this blog we will learn how to create Rock Paper & Scissor game using tkinter. Tkinter provides GUI toolkit. Tkinter is a built in library of python with the help of this we can create so many GUI applications. To create Rock Paper & Scissor game their are some conditions: Rock + Paper => Paper Win Rock+Scissor =>Rock Win Rock+Rock => Match Draw Paper+Rock => Paper win Paper+Scissor=> scissor win Paper+Paper => Draw Scissor+Paper => Scissor Win Scissor+Rock => Rock Win Scissor+Scissor =>Match Draw Our complete project is depend on this conditions. Steps to complete this project: 1. Import require modules and library 2. Create Basic GUI window for our projects: 3. Declare the values for computer & score of player and computer: 4. Create a function for Rock: 5. Create Function for Paper: 6. Create a function for Scissor: 7. Create a function to reset our game: This is code snippets of this