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

Is it possible to send html email? #68

Open
dan-developer opened this issue Jan 14, 2020 · 3 comments
Open

Is it possible to send html email? #68

dan-developer opened this issue Jan 14, 2020 · 3 comments

Comments

@dan-developer
Copy link

It's possible?

Thanks.

@endersonmenezes
Copy link

Yes! You can send. You can send any email you would normally send with Django.

@dan-developer
Copy link
Author

I just found it here in the documentation:

from django.core import mail

emails = (
    ('Hey Man', "I'm The Dude! So that's what you call me.", '[email protected]', ['[email protected]']),
    ('Dammit Walter', "Let's go bowlin'.", '[email protected]', ['[email protected]']),
)
results = mail.send_mass_mail(emails)

But to send emails in HTML format, I use this:

send_mail(subject=subject, message=plain_message, html_message=html_message, from_email=None, recipient_list=[responsible_email])

@endersonmenezes
Copy link

Keep using your normal code, Django Celery is placed as a layer before, no commands will change, all commands are django defaults.

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

No branches or pull requests

2 participants