Skip to content

Instantly share code, notes, and snippets.

@mcardozo
Created January 5, 2021 19:14
Show Gist options
  • Save mcardozo/7ff4505fcf4fa44edba5e1b49aab94fb to your computer and use it in GitHub Desktop.
Save mcardozo/7ff4505fcf4fa44edba5e1b49aab94fb to your computer and use it in GitHub Desktop.
Envío de emails con django, mailhog y celery
version: '3.8'
services:
mailhog:
image: mailhog/mailhog:v1.0.0
container_name: mailhog
expose:
- 1025
- 8025
ports:
- '1025:1025'
- '8025:8025'
EMAIL_BACKEND = "django.core.mail.backends.smtp.EmailBackend"
EMAIL_USE_TLS = False
EMAIL_HOST = '0.0.0.0'
EMAIL_PORT = 1025
CELERY_BROKER_URL = 'redis://localhost:6379/'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment