Shkruani një kod që dërgon një email përkujtues
Data e synuar: 15 gusht 2022
""" Dërgo një email përkujtues """ import smtplib def send_reminder_email ((target_date, subjekt, mesazh): # Setup email server server = smtplib.SMTP (('smtp.gmail.com', 587) server.ehlo (() server.starttls (() server.login (('<username>', '<password>)) # Create reminder email sender = '<sender@example.com>' receivers = ['<receiver@example.com>'] body = f'Subject: {subject}\n\n{message} server.sendmail_sender, receivers, body) # Schedule a reminder to be sent on the target server date.schedule_reminder_targetdate, sender, receivers body) #connect to the email server.