Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
picnixz committed Jun 18, 2024
1 parent 87281a7 commit c243230
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Doc/library/smtplib.rst
Original file line number Diff line number Diff line change
Expand Up @@ -560,8 +560,8 @@ example doesn't do any processing of the :rfc:`822` headers. In particular, the

import smtplib

def prompt(prompt):
return input(prompt).strip()
def prompt(title):
return input(title).strip()

from_addr = prompt("From: ")
to_addrs = prompt("To: ").split()
Expand All @@ -577,10 +577,10 @@ example doesn't do any processing of the :rfc:`822` headers. In particular, the
else:
lines.append(line)

msg = '\r\n'.join(lines)
msg = "\r\n'.join(lines)
print("Message length is", len(msg))

server = smtplib.SMTP('localhost')
server = smtplib.SMTP("localhost")
server.set_debuglevel(1)
server.sendmail(from_addr, to_addrs, msg)
server.quit()
Expand Down

0 comments on commit c243230

Please sign in to comment.