Hi, there's already a ticket: https://code.djangoproject.com/ticket/6989
On Friday, December 20, 2019 at 7:33:35 AM UTC-5, David Nolan wrote:
>
> Hey all.
>
> In cloud environments, when using
> django.core.mail.backends.smtp.EmailBackend, socket.getfqdn() is called
> to resolve the 'reported ho
Hey all.
In cloud environments, when using django.core.mail.backends.smtp.EmailBackend,
socket.getfqdn() is called to resolve the 'reported hostname' for smtplib. This
often resolves to an internal DNS name, not the intended name.
It would be convenient to provide a kwarg to allow overriding th