这是我的settings.py
EMAIL_USE_TLS = True
EMAIL_HOST = "smtp.gmail.com"
EMAIL_HOST_USER = "mygmail@gmail.com"
EMAIL_HOST_PASSWORD = "mypassword"
EMAIL_PORT = 587
和 view.py 代码
From='someemail@mail.com'
send_mail(Subject,Message, From, [To])
每次发送邮件时都会显示mygmail@gmail.com
,但我需要显示someemail@mail.com
,如何解决?