Ticket #1555: mail_with_port.diff
File mail_with_port.diff, 953 bytes (added by , 19 years ago) |
---|
-
django/conf/global_settings.py
86 86 87 87 # Host for sending e-mail. 88 88 EMAIL_HOST = 'localhost' 89 # Port for sending e-mail. Default is standard SMTP port. 90 EMAIL_PORT = 25 89 91 90 92 # Optional SMTP authentication information for EMAIL_HOST. 91 93 EMAIL_HOST_USER = '' -
django/core/mail.py
30 30 If auth_user and auth_password are set, they're used to log in. 31 31 """ 32 32 try: 33 server = smtplib.SMTP(settings.EMAIL_HOST )33 server = smtplib.SMTP(settings.EMAIL_HOST, settings.EMAIL_PORT) 34 34 if auth_user and auth_password: 35 35 server.login(auth_user, auth_password) 36 36 except: