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 = 'you@everycrave.me'
EMAIL_HOST_PASSWORD = '*********'
EMAIL_USE_TLS = True
in view:
text="hi this is test mail"
send_mail('Codeville Signup', text.decode(), 'gaurav@everycrave.me', ['manish@everycrave.me', 'jagat@everycrave.me'], fail_silently=False)
i want to send the mail from "gaurav@everycrave.me" but mail is getting sent by "you@everycrave.me" How can i overcome this problem. And i dont want to change EMAIL_HOST_USER mail address. Guide me through this