Explorar o código

Merge pull request #18 from drush0/typo-fix

docs: Fixed two typos
Mikael Koli %!s(int64=4) %!d(string=hai) anos
pai
achega
161fec5b76
Modificáronse 2 ficheiros con 4 adicións e 4 borrados
  1. 2 2
      docs/tutorials/example.rst
  2. 2 2
      redmail/email/sender.py

+ 2 - 2
docs/tutorials/example.rst

@@ -30,7 +30,7 @@ Simple Example
         subject="An email",
         sender="me@example.com",
         receivers=['you@example.com'],
-        test="Hi, this is an email.",
+        text="Hi, this is an email.",
         html="<h1>Hi, </h1><p>this is an email.</p>"
     )
 
@@ -218,4 +218,4 @@ features of Red Mail:
             "file.html": Path("path/to/a_file.html"),
             "file.bin": byte_content,
         }
-    )
+    )

+ 2 - 2
redmail/email/sender.py

@@ -233,7 +233,7 @@ class EmailSender:
                     subject="An email",
                     sender="me@example.com",
                     receivers=['you@example.com'],
-                    test="Hi, this is an email.",
+                    text="Hi, this is an email.",
                     html="<h1>Hi, </h1><p>this is an email.</p>"
                 )
 
@@ -466,4 +466,4 @@ class EmailSender:
         if html_table is not None:
             self.templates_html_table = jinja2.Environment(loader=jinja2.FileSystemLoader(html_table))
         if text_table is not None:
-            self.templates_text_table = jinja2.Environment(loader=jinja2.FileSystemLoader(text_table))
+            self.templates_text_table = jinja2.Environment(loader=jinja2.FileSystemLoader(text_table))