Reputation: 11523
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?
Upvotes: 0
Views: 345
Reputation: 1323
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.
Upvotes: 1