Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature/send email #526

Open
wants to merge 13 commits into
base: develop
Choose a base branch
from

Conversation

rhenanbartels
Copy link
Contributor

@rhenanbartels rhenanbartels commented Apr 8, 2021

Esse PR implementa o envio de emails em batelada dado um arquivo CSV e um template TXT.
Os envios dos e-mails são colocados na fila assíncrona default pelo django_rq.

Obs.: Anda precisamos definir o subject, to (teremos um campo email no csv?) e from_email do email enviado.

Para rodar o comanda basta executar:

python manage.py send_bulk_emails input_filename.csv email_template.txt

Existe também uma opção que apenas imprime os emails na tela, com a flag --dry-run:

python manage.py send_bulk_emails input_filename.csv email_template.txt  --dry-run

@turicas turicas marked this pull request as ready for review April 16, 2021 04:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants