Hi,

I'd like to send an email from django. This is the code I'm using :

# views.py
def hello(request):
    send_mail('subject', "body", "[email protected]", ["[email protected]"])
    return render_to_response('hello.html', locals())

# settings.py
EMAIL_USE_TLS = True
EMAIL_HOST = "smtp.gmail.com"
EMAIL_HOST_USER = "[email protected]"
EMAIL_HOST_PASSWORD = "mypassword"
EMAIL_PORT = 587
DEFAULT_FROM_EMAIL = "[email protected]"

The email is correctly send to [email protected] but there is no mention of
[email protected]. The email is received as coming from
[email protected]. I was expecting that it would be [email protected]
(or at least a mention of it).

Thank you

mart

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.

Reply via email to