Avatar ·

Django. Sending Email to Localhost`e

📁 python, ошибка, пример, ии, debug, работа

Tell me how I can send a letter on a mailbox on a local server. Dzhango works at Localhost: 8080 for sending (as I read in the documentation) you need a SMTP server. I also launch local

  Python -m smtpd -n -c Debugingserver localhost:  1025   

I get Localhost: 1025 in Vyuha

  Send_mail ( 'Theme' ,  'my memesege' ,  'admins@studio.ru' ,  [ '@a.ru' ])     

I caught different errors, for example with Getaddrinfo (Host, Port) added to the blizzard

   IMPort  SOCKETSOCKET.GETADDRINFO ( 'localhost' ,  8080 )     

now error [ero 11004] getddrinfo Failed

  (CODE, CODE, CODE, CODE, CODE, CODE, CODE, CODE MSG) = Self.connect (host, port)     

I don’t know how to configure (beginner) and wrote in setting:

  Email_host = "  'localhost: 8080'  email_host_user =  'useame@domain.ru'  email_host_password =  ''  email_port =  1025      

is true in the setting problem. Tell me how to configure everything correctly?