E -mail_backud, gdzie przeczytać
SPARKPOST_API_KEY = 'API_KEY'
EMAIL_BACKEND = 'sparkpost.django.email_backend.SparkPostEmailBackend'
Long Lion
SPARKPOST_API_KEY = 'API_KEY'
EMAIL_BACKEND = 'sparkpost.django.email_backend.SparkPostEmailBackend'
from django.core.mail import send_mail
send_mail(
subject='Hello from SparkPost',
message='Woo hoo! Sent from Django!',
from_email='[email protected]',
recipient_list=['[email protected]'],
html_message='<p>Hello Rock stars!</p>',
)
SPARKPOST_OPTIONS = {
'track_opens': False,
'track_clicks': False,
'transactional': True,
}