SMTP
Send Django email with SMTP
Configure Django's SMTP email backend to deliver through Parcel Wing.
SMTP settings
Copy the exact values from your in-app Settings page. Most accounts use these defaults.
SettingValue
Host
smtp.parcelwing.comPort
587Security
STARTTLSUsername
parcelwingPassword
Any active Parcel Wing API keySettings
Store your Parcel Wing API key in environment variables, then update your Django settings module.
settings.py
EMAIL_BACKEND = "django.core.mail.backends.smtp.EmailBackend"EMAIL_HOST = "smtp.parcelwing.com"EMAIL_PORT = 587EMAIL_USE_TLS = TrueEMAIL_HOST_USER = "parcelwing"EMAIL_HOST_PASSWORD = os.environ["PARCELWING_API_KEY"]DEFAULT_FROM_EMAIL = "Acme <[email protected]>"
Use a verified sender
Your from address should belong to a sending domain that is verified in Parcel Wing. This keeps SPF, DKIM, and DMARC aligned for better deliverability.
Troubleshooting
- Use port
587with STARTTLS, not implicit TLS on port 465. - Use
parcelwingas the username and an active Parcel Wing API key as the password. - Make sure the sender address uses a verified sending domain.
- If a vendor has a test email button, send a test before enabling production email.