📅  最后修改于: 2022-03-11 14:45:09.157000             🧑  作者: Mango
from django.core.mail import send_mail
send_mail(
subject='Hello from SparkPost',
message='Woo hoo! Sent from Django!',
from_email='from@yourdomain.com',
recipient_list=['to@example.com'],
html_message='Hello Rock stars!
',
)