However, when using the send_mail function, the `from_email` argument is
not optional.
A workaround for this right now is this.
{{{
send_mail(
subject=subject,
message=message,
recipient_list=[self.user.email],
from_email=None
)
}}}
giving a default value of `None` to it will resolve this issue.
--
Ticket URL: <https://code.djangoproject.com/ticket/32633>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
Comment (by aryan340):
https://github.com/django/django/pull/14249
I made a pull request.
--
Ticket URL: <https://code.djangoproject.com/ticket/32633#comment:1>
* has_patch: 0 => 1
--
Ticket URL: <https://code.djangoproject.com/ticket/32633#comment:2>
* status: new => closed
* resolution: => worksforme
Comment:
`DEFAULT_FROM_EMAIL` will be used if you explicitly pass `None` to the
`from_email` argument.
We cannot change the order of arguments as it would be backward-
incompatible.
--
Ticket URL: <https://code.djangoproject.com/ticket/32633#comment:3>