EMAIL_HOST and PORT

88 views
Skip to first unread message

Pierre de Nomazy

unread,
May 16, 2012, 8:15:49 AM5/16/12
to djang...@googlegroups.com
Krais,

LFS 0.7.2b, with development server (runserver at http://localhost:8000).
In order to try to send internal mel, I registred my mel adress in notification_emails, Then click the button "send" in the contact form, I get the error SMTPServerDisconnected at /contact please run connect() first. So in setting.py, ligne 184 I added EMAIL_HOST = "localhost". Then no error with button send, but I don't received any mel. I look throught "def send_contact_mail" in utils.py and I don't understand how "mail" get the host data ? Neither I don't see if the application need EMAIL_PORT ?
Thanks for Help
Pierre

Kai Diefenbach

unread,
May 16, 2012, 5:30:26 PM5/16/12
to django-lfs
Hi Pierre,

On 16 Mai, 14:15, Pierre de Nomazy <pierre.nom...@gmail.com> wrote:
> LFS 0.7.2b, with development server (runserver athttp://localhost:8000).
> In order to try to send internal mel, I registred my mel adress in
> notification_emails, Then click the button "send" in the contact form, I
> get the error SMTPServerDisconnected at /contact please run connect()
> first. So in setting.py, ligne 184 I added EMAIL_HOST = "localhost". Then
> no error with button send, but I don't received any mel. I look throught
> "def send_contact_mail" in utils.py and I don't understand how "mail" get
> the host data ? Neither I don't see if the application need EMAIL_PORT ?

You need to enter the address of a SMTP Server. I assume, you haven't
running one on localhost.

Regards
Kai
Reply all
Reply to author
Forward
0 new messages