Integrating Amply with Django is easy and can be done in just a few minutes.

Update config

Add the following to settings.py:

AMPLY_ACCESS_TOKEN = os.getenv('AMPLY_ACCESS_TOKEN')

EMAIL_HOST = 'smtp.sendamply.net'
EMAIL_HOST_USER = 'AMPLY_SMTP_USERNAME'
EMAIL_HOST_PASSWORD = 'AMPLY_ACCESS_TOKEN'
EMAIL_PORT = 587
EMAIL_USE_

You can find your SMTP username from your General Settings page.


Send email

Send mail using the send_mail function:

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

 

What’s Next