0
votes

I'm looking at the Sendgrid documentation and it writes that to send an email, this is enough:

from django.core.mail import send_mail
send_mail('Subject here', 'Here is the message.', '[email protected]', ['[email protected]'], fail_silently=False)

If I want to use Sendgrid templates, where do I declare the template I want to use? Also, there are substitution tags in Sendgrid's templates. How can I declare them in django?

1

1 Answers

1
votes

I don't have enough rep to comment but you might want to consider using sendgrid-django which allows easy usage of your sendgrid templates.