(using ssl)then encryption is already set upand you should skip this step here' an example of the starttls(method callsmtpobj starttls(( bready to start tls'the starttls(method puts your smtp connection in tls mode the in the return value tells you that the server is ready logging in to the smtp server once your encrypted connection to the smtp server is set upyou can log in with your username (usually your email addressand email password by calling the login(method smtpobj login('my_email_address@example com''my_secret_password'( baccepted'pass string of your email address as the first argument and string of your password as the second argument the in the return value means authentication was successful python raises an smtplib smtp authenticationerror exception for incorrect passwords warning be careful about putting passwords in your source code if anyone ever copies your programthey'll have access to your email accountit' good idea to call input(and have the user type in the password it may be inconvenient to have to enter password each time you run your programbut this approach prevents you from leaving your password in an unencrypted file on your computer where hacker or laptop thief could easily get it sending an email once you are logged in to your email provider' smtp serveryou can call the sendmail(method to actually send the email the sendmail(method call looks like thissmtpobj sendmail('my_email_address@example com''recipient@example com''subjectso long \ndear aliceso long and thanks for all the fish sincerelybob'{the sendmail(method requires three argumentsyour email address as string (for the email' "fromaddressthe recipient' email address as stringor list of strings for multiple recipients (for the "toaddressthe email body as string sending email and text messages