Email over API
The Infobip Email API (opens in a new tab) allows you to send transactional and marketing emails programmatically using either the HTTP API or the SMTP API. Both options provide secure and scalable ways to deliver personalized, trackable emails to your recipients.
What you can do with the Email API
Use the Email API to:
- Automate transactional notifications, such as order confirmations, password resets, and alerts
- Send personalized marketing campaigns
- Manage bulk email delivery at scale
- Track delivery, opens, and clicks in real time
Prerequisites
Before sending emails over the API, ensure that your sending domain is verified and active in the Infobip system.
You can verify your domain in the User profile (opens in a new tab) section of your Infobip account.
Technical specifications and best practices
- Message size: Maximum 10 MB (including attachments)
- Attachments: Supported types:
.pdf,.docx,.xlsx,.txt,.jpg,.png,.gif - Unsubscribe: Always include an unsubscribe link in marketing emails to comply with anti-spam laws
- Verified sender domains: Ensure DNS and SPF/DKIM records are properly configured for better deliverability
- Rate limits: Check your account’s sending limits to avoid throttling
Choosing between HTTP API and SMTP API
| Feature | HTTP API | SMTP API |
|---|---|---|
| Best for | Custom applications, bulk campaigns | Existing email tools (CRM, ERP, CMS) |
| Authentication | API key (recommended) | Username/password (or API key) |
| Format | JSON | Standard SMTP |
| Tracking | Full analytics (opens, clicks, bounces) | Limited |
| Flexibility | High - dynamic templates, placeholders | Medium - relies on SMTP protocol |