0
我看Sendgrid文檔,並將其寫入該發送電子郵件將標記替換,這就夠了:Django的 - Sendgrid如何使用send_mail
from django.core.mail import send_mail
send_mail('Subject here', 'Here is the message.', '[email protected]', ['[email protected]'], fail_silently=False)
如果我想使用Sendgrid模板,在哪裏我聲明瞭我想要使用的模板?另外,Sendgrid的模板中有substitution tags。我如何在django中聲明它們?