Skip to main content

Featured

Tic Tac Toe

Tic Tac Toe Tic Tac Toe is a simple, two-player strategy game played on a 3x3 grid. Players take turns marking a square with either an "X" or an "O", with the goal of being the first to align three of their marks in a row, column, or diagonal.  I have made a simple Tic Tac Toe game using html, css, javascript.  The game doesnot have much features. The game is created to be played by two peoples. It is just a simple game. The code of this game you get in my github page   Link of this game code is below: Tic Tac Toe Game Code /

Python Program for sending gmail

 Before running this program you must allow less secure app of sender gmail


import smtplib

import getpass


print("\nProgram to send email of gmail\n")


s = smtplib.SMTP_SSL("smtp.gmail.com", 465) #secure session established

Sender_mail = input(str("Sender Gmail: "))

Sender_password = getpass.getpass(prompt="Password: ")


s.login(Sender_mail, Sender_password)


Recevier_mail = input(str("\nReceiver Gmail: "))

sub = input(str("\nSubject: "))


mes = input(str("Message\n"))


message = f'''Subject: {sub} \n\n  {mes}'''


s.sendmail(Sender_mail, Recevier_mail, message)


print("!Send message successfully")

s.quit()



Comments

Popular Posts