Explorar el Código

docs: wrote about cc and bcc

Mikael Koli hace 4 años
padre
commit
9346f07984
Se han modificado 2 ficheros con 18 adiciones y 0 borrados
  1. 1 0
      docs/index.rst
  2. 17 0
      docs/tutorials/sending.rst

+ 1 - 0
docs/index.rst

@@ -68,6 +68,7 @@ Here are also other reasons to use Red Mail:
 - :ref:`It has Jinja support <jinja-support>`
 - :ref:`You can reuse your HTML templates <templating>`
 - :ref:`Gmail pre-configured <config-gmail>`
+- :ref:`Send with cc and bcc <send-cc-bcc>`
 
 In addition, normally tables in emails look like this:
 

+ 17 - 0
docs/tutorials/sending.rst

@@ -52,4 +52,21 @@ You can also include both to your email:
             <h1>Hi,</h1>
             <p>this is an email.</p>
         """
+    )
+
+.. _send-cc-bcc:
+
+Sending Email with cc and bcc
+-----------------------------
+
+You can also include carbon copy (cc) and blind carbon copy (bcc)
+to your emails:
+
+.. code-block:: python
+
+    email.send(
+        subject='email subject',
+        receivers=['first.last@example.com'],
+        cc=['also@example.com'],
+        bcc=['outsider@example.com']
     )