i am trying to send the mail in django. mail is going properly but mail is going by EMAIL_HOST_USER. Want to send the mail using from i.e. from some other email address.
settings.py
EMAIL_HOST ='smtp.gmail.com'
EMAIL_PORT = 587
EMAIL_HOST_USER = '[email protected]'
EMAIL_HOST_PASSWORD = '*********'
EMAIL_USE_TLS = True
in view:
text="hi this is test mail"
send_mail('Codeville Signup', text.decode(), '[email protected]', ['[email protected]', '[email protected]'], fail_silently=False)
i want to send the mail from "[email protected]" but mail is getting sent by "[email protected]" How can i overcome this problem. And i dont want to change EMAIL_HOST_USER mail address. Guide me through this