Mikael Koli 4 лет назад
Родитель
Сommit
51e98dfeae
2 измененных файлов с 4 добавлено и 4 удалено
  1. 2 2
      README.md
  2. 2 2
      docs/index.rst

+ 2 - 2
README.md

@@ -32,7 +32,7 @@ from email.mime.multipart import MIMEMultipart
 from email.mime.text import MIMEText
 
 msg = MIMEMultipart('alternative')
-msg['Subject'] = f'The contents of {textfile}'
+msg['Subject'] = 'An example email'
 msg['From'] = 'first.last@gmail.com'
 msg['To'] = 'first.last@example.com'
 
@@ -71,7 +71,7 @@ from redmail import EmailSender
 email = EmailSender(host="localhost", port=0)
 
 email.send(
-    subject="The contents of myfile",
+    subject="An example email",
     sender="me@example.com",
     receivers=['first.last@example.com'],
     text="Hello!",

+ 2 - 2
docs/index.rst

@@ -29,7 +29,7 @@ message but simply sending emails **SHOULD NOT** look like this:
     from email.mime.text import MIMEText
 
     msg = MIMEMultipart('alternative')
-    msg['Subject'] = f'The contents of {textfile}'
+    msg['Subject'] = 'An example email'
     msg['From'] = 'first.last@gmail.com'
     msg['To'] = 'first.last@example.com'
 
@@ -54,7 +54,7 @@ It should look like this:
     email = EmailSender(host="localhost", port=0)
 
     email.send(
-        subject="The contents of myfile",
+        subject="An example email",
         receivers=['first.last@example.com'],
         text="Hello!",
         html="<h1>Hello!</h1>"