Skip to main content

Prerequisites

SMTP credentials

To set up your SMTP integration, you’ll need to provide the following credentials:
  • Host: smtp-out.mailrify.com
  • Port: 465, 587, 2465, or 2587
  • Username: sendit
  • Password: YOUR-API-KEY

Send email using Django and SMTP

# Use Django's get_connection and EmailMessage:
with get_connection(
    host="smtp-out.mailrify.com",
    port=587,
    username="sendit",
    password="YOUR_API_KEY",
    use_tls=True,
    ) as connection:
        r = EmailMessage(
            from_email="[email protected]",
            subject="Welcome to Mailrify",
            to="[email protected]",
            body="<p>It works! 👋</p>",
            connection=connection).send()