Skip to content

Instantly share code, notes, and snippets.

@nskeip
Last active February 23, 2024 15:03
Show Gist options
  • Star 13 You must be signed in to star a gist
  • Fork 7 You must be signed in to fork a gist
  • Save nskeip/2843522 to your computer and use it in GitHub Desktop.
Save nskeip/2843522 to your computer and use it in GitHub Desktop.
Django SMTP settings for yandex_for_domain mail (pdd.yandex.ru)
EMAIL_HOST = 'smtp.yandex.ru'
EMAIL_HOST_USER = 'login@example.com'
EMAIL_HOST_PASSWORD = 'password'
EMAIL_PORT = 587
EMAIL_USE_TLS = True
@baltasvejas
Copy link

In case you use http over SSL, then your settings should be:

EMAIL_HOST = 'smtp.yandex.ru'
EMAIL_HOST_USER = 'login@example.com'
EMAIL_HOST_PASSWORD = 'password'
EMAIL_PORT = 465
EMAIL_USE_TLS = False
EMAIL_USE_SSL = True

@devel787
Copy link

devel787 commented Dec 4, 2014

EMAIL_HOST = 'smtp.yandex.ru'
EMAIL_PORT = 587
EMAIL_HOST_USER = 'login@example.com'
EMAIL_HOST_PASSWORD = 'password'
DEFAULT_FROM_EMAIL = 'login@example.com'
EMAIL_USE_TLS = True

@coffebar
Copy link

devel787, все еще актуально, спасибо! Подтверждаю что конфиг работает.

@tsepelev
Copy link

Последний конфиг рабочий, спасибо!

@overflow
Copy link

overflow commented Apr 1, 2020

devel787, still working, thanks.

@LittlePemp
Copy link

Still working)

@nineteenss
Copy link

Still working! ;)

@baikov
Copy link

baikov commented Aug 31, 2023

In case you use http over SSL, then your settings should be:

EMAIL_HOST = 'smtp.yandex.ru'
EMAIL_HOST_USER = 'login@example.com'
EMAIL_HOST_PASSWORD = 'password'
EMAIL_PORT = 465
EMAIL_USE_TLS = False
EMAIL_USE_SSL = True

I used this settings and it worked. Thnx!

@maskalev
Copy link

maskalev commented Dec 1, 2023

still working!

@roboim
Copy link

roboim commented Feb 23, 2024

The lastest config settings are fine

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment