<prompt> Kuzalisha kipande cha code kwa automatiska kazi.Script ambayo automatiska mchakato wa kutuma barua pepe.  <response>: Here is a Python script that can automate the process of sending emails using the smtplib library:pythonimport smtplibfrom email.message import EmailMessagedef send_emailto, subject, body: msg EmailMessage msg.set_contentbody msgSubject subject msgTo to user msgFrom user password yourpassword server smtplib.SMTPsmtp.example.com, 587 server.starttls server.loginuser, password server.send_messagemsg server.quit Example Test Subject, This is a test email.This script creates a function called send_email that takes the recipients email address, subject, and body of the email as input. It then uses the smtplib library to log in to the email server and send the message. You will need to replace yourpassword, and smtp.example.com with your own email credentials and server information. 