Hi,
I made several tests using 'django.core.mail' with the 'mail_managers
()' function.

OK when using GMAIL smtp with these settings:

EMAIL_HOST = 'smtp.gmail.com'
EMAIL_PORT = '587'
EMAIL_HOST_USER = '[email protected]'
EMAIL_HOST_PASSWORD = 'gmail.pwd'
EMAIL_USE_TLS = True
DEFAULT_FROM_EMAIL = '[email protected]'

OK but message sent as EMAIL_HOST_USER instead of DEFAULT_FROM_EMAIL
with:

EMAIL_HOST = 'smtp.gmail.com'
EMAIL_PORT = '587'
EMAIL_HOST_USER = '[email protected]'
EMAIL_HOST_PASSWORD = 'gmail.pwd'
EMAIL_USE_TLS = True
DEFAULT_FROM_EMAIL = '[email protected]'

and NOT OK (504, '5.5.2 <r...@localhost>: Sender address rejected:
need fully-qualified address', 'r...@localhost') using my Internet
provider smtp:

EMAIL_HOST = 'smtp.myprovider.com'
EMAIL_PORT = '25'
EMAIL_HOST_USER = ''
EMAIL_HOST_PASSWORD = ''
EMAIL_USE_TLS = False
DEFAULT_FROM_EMAIL = '[email protected]'

so it seems that DEFAULT_FROM_EMAIL is actually not employed. The from
field is filled with the email EMAIL_HOST_USER when an authenticated
smtp is used, otherwise it is left blank.

Anyone having a solution or this is a bug?
Regards

PS. I have the dame behaviour with django 1.0.2 and django trunk.

--~--~---------~--~----~------------~-------~--~----~
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