Mikael Koli 4 лет назад
Родитель
Сommit
d5c059701f
2 измененных файлов с 2 добавлено и 2 удалено
  1. 1 1
      docs/tutorials/client.rst
  2. 1 1
      redmail/email/sender.py

+ 1 - 1
docs/tutorials/client.rst

@@ -9,7 +9,7 @@ of the connection with your SMTP server. In this discussion we discuss ways to c
 
 
 By default Red Mail uses `STARTTLS <https://en.wikipedia.org/wiki/Opportunistic_TLS>`_ or opportunistic
 By default Red Mail uses `STARTTLS <https://en.wikipedia.org/wiki/Opportunistic_TLS>`_ or opportunistic
 TLS in connecting to the SMTP server. You may also change this if needed by changing the 
 TLS in connecting to the SMTP server. You may also change this if needed by changing the 
-``cls_smtp`` to other SMTP client classes from `smtplib <https://docs.python.org/3/library/smtplib.html>`_
+``cls_smtp`` to other SMTP client classes from ::stdlib:`smtplib <smtplib.html>`
 in standard library.
 in standard library.
 
 
 .. note::
 .. note::

+ 1 - 1
redmail/email/sender.py

@@ -39,7 +39,7 @@ class EmailSender:
         User password to authenticate on the server.
         User password to authenticate on the server.
     cls_smtp : smtplib.SMTP
     cls_smtp : smtplib.SMTP
         SMTP class to use for connection. See options 
         SMTP class to use for connection. See options 
-        from `Python smtplib docs <https://docs.python.org/3/library/smtplib.html>`_.
+        from :stdlib:`Python smtplib docs <smtplib.html>`.
     use_starttls : bool
     use_starttls : bool
         Whether to use `STARTTLS <https://en.wikipedia.org/wiki/Opportunistic_TLS>`_ 
         Whether to use `STARTTLS <https://en.wikipedia.org/wiki/Opportunistic_TLS>`_ 
         when connecting to the SMTP server.
         when connecting to the SMTP server.