I have a Django project, in which I’m attempting to send an email using my gmail account. Note this works fine on my dev machine.
Code : from django.core.mail import send_mail … send_mail(subject, message, settings.EMAIL_HOST_USER, [settings.EMAIL_HOST_USER])
EMAIL_USE_TLS = True
Anyone know why I’m getting the exception, when running the code in a VPS. Note : running Gunicorn & Nginx
Any help or advice appreciated.
These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.