@@ -133,11 +133,11 @@ can be ``0`` or ``1`` since it can only send one message).
133133 (subject, message, from_email, recipient_list)
134134
135135``fail_silently``, ``auth_user``, ``auth_password`` and ``connection`` have the
136- same functions as in :meth :`~django.core.mail.send_mail`. They must be given
136+ same functions as in :func :`~django.core.mail.send_mail`. They must be given
137137as keyword arguments if used.
138138
139139Each separate element of ``datatuple`` results in a separate email message.
140- As in :meth :`~django.core.mail.send_mail`, recipients in the same
140+ As in :func :`~django.core.mail.send_mail`, recipients in the same
141141``recipient_list`` will all see the other addresses in the email messages'
142142"To:" field.
143143
@@ -169,12 +169,12 @@ The return value will be the number of successfully delivered messages.
169169``send_mass_mail()`` vs. ``send_mail()``
170170----------------------------------------
171171
172- The main difference between :meth :`~django.core.mail.send_mass_mail` and
173- :meth :`~django.core.mail.send_mail` is that
174- :meth :`~django.core.mail.send_mail` opens a connection to the mail server
175- each time it's executed, while :meth :`~django.core.mail.send_mass_mail` uses
172+ The main difference between :func :`~django.core.mail.send_mass_mail` and
173+ :func :`~django.core.mail.send_mail` is that
174+ :func :`~django.core.mail.send_mail` opens a connection to the mail server
175+ each time it's executed, while :func :`~django.core.mail.send_mass_mail` uses
176176a single connection for all of its messages. This makes
177- :meth :`~django.core.mail.send_mass_mail` slightly more efficient.
177+ :func :`~django.core.mail.send_mass_mail` slightly more efficient.
178178
179179``mail_admins()``
180180=================
@@ -248,7 +248,7 @@ scripts generate.
248248The Django email functions outlined above all protect against header injection
249249by forbidding newlines in header values. If any ``subject``, ``from_email`` or
250250``recipient_list`` contains a newline (in either Unix, Windows or Mac style),
251- the email function (e.g. :meth :`~django.core.mail.send_mail`) will raise
251+ the email function (e.g. :func :`~django.core.mail.send_mail`) will raise
252252:exc:`ValueError` and, hence, will not send the email. It's your responsibility
253253to validate all data before passing it to the email functions.
254254
@@ -291,18 +291,18 @@ from the request's POST data, sends that to admin@example.com and redirects to
291291The ``EmailMessage`` class
292292==========================
293293
294- Django's :meth :`~django.core.mail.send_mail` and
295- :meth :`~django.core.mail.send_mass_mail` functions are actually thin
294+ Django's :func :`~django.core.mail.send_mail` and
295+ :func :`~django.core.mail.send_mass_mail` functions are actually thin
296296wrappers that make use of the :class:`~django.core.mail.EmailMessage` class.
297297
298298Not all features of the :class:`~django.core.mail.EmailMessage` class are
299- available through the :meth :`~django.core.mail.send_mail` and related
299+ available through the :func :`~django.core.mail.send_mail` and related
300300wrapper functions. If you wish to use advanced features, such as BCC'ed
301301recipients, file attachments, or multi-part email, you'll need to create
302302:class:`~django.core.mail.EmailMessage` instances directly.
303303
304304.. note::
305- This is a design feature. :meth :`~django.core.mail.send_mail` and
305+ This is a design feature. :func :`~django.core.mail.send_mail` and
306306 related functions were originally the only interface Django provided.
307307 However, the list of parameters they accepted was slowly growing over
308308 time. It made sense to move to a more object-oriented design for email
@@ -675,7 +675,7 @@ It can also be used as a context manager, which will automatically call
675675Obtaining an instance of an email backend
676676-----------------------------------------
677677
678- The :meth :`get_connection` function in ``django.core.mail`` returns an
678+ The :func :`get_connection` function in ``django.core.mail`` returns an
679679instance of the email backend that you can use.
680680
681681.. function:: get_connection(backend=None, *, fail_silently=False, **kwargs)
@@ -756,7 +756,7 @@ The file backend writes emails to a file. A new file is created for each new
756756session that is opened on this backend. The directory to which the files are
757757written is either taken from the :setting:`EMAIL_FILE_PATH` setting or from
758758the ``file_path`` keyword when creating a connection with
759- :meth :`~django.core.mail.get_connection`.
759+ :func :`~django.core.mail.get_connection`.
760760
761761To specify this backend, put the following in your settings::
762762
0 commit comments