﻿id	summary	reporter	owner	description	type	status	component	version	severity	resolution	keywords	cc	stage	has_patch	needs_docs	needs_tests	needs_better_patch	easy	ui_ux
36805	Use `None` as default value for `from_email` in `send_mail`-function	Adrian Bürger		"The docstring of the function `send_mail` states that

""If from_email is None, use the DEFAULT_FROM_EMAIL setting.""

`from_email` is a required argument which would explicitly need to be set to `None` so that `DEFAULT_FROM_EMAIL` is applied. However, other inputs of this function such as `auth_user` and `auth_password` which have a settings-value applied if they are `None`, are given a default value of `None`. Therefore, I am not a sure whether this behavior is intended; personally, I would expect `from_email` to have a default value of `None`. Otherwise, users get an unexpected `TypeError: send_mail() missing 1 required positional argument: 'from_email'`.

I see this in Django 4.2 but still also in the current main branch on GitHub.

Thank you for your consideration and for your work."	Uncategorized	closed	Core (Mail)	4.2	Normal	wontfix			Unreviewed	0	0	0	0	0	0
