Mailjet SMTP Settings
Complete guide to configure Mailjet SMTP for sending transactional and marketing emails. Mailjet is a Sinch company offering powerful email delivery with analytics.
table_chart Quick Reference
| Setting | Value |
|---|---|
| SMTP Server | in-v3.mailjet.com |
| Port (TLS) | 587 Recommended |
| Port (SSL) | 465 |
| Alternative Port | 25 (may be blocked) |
| Username | Your Mailjet API Key |
| Password | Your Mailjet Secret Key |
| Encryption | TLS/SSL Required |
| Free Tier | 200 emails/day, 6,000/month |
Mailjet by Sinch
Mailjet is part of the Sinch family (along with Mailgun). It offers both transactional email and marketing campaigns with real-time analytics and A/B testing.
Step-by-Step Setup Guide
Create a Mailjet Account
Sign up for a free Mailjet account:
- Go to mailjet.com and click 'Sign Up'
- Enter your email and create a password
- Verify your email address
- Complete your account profile
Get Your API Credentials
Find your API keys in Mailjet dashboard:
- Log in to your Mailjet account
- Go to Account Settings โ API Keys
- Copy your API Key (this is your SMTP username)
- Copy your Secret Key (this is your SMTP password)
Keep your Secret Key secure. Never expose it in client-side code!
Verify Your Sender Domain
For better deliverability, verify your domain:
- Go to Sender Domains & Addresses
- Add your domain and verify ownership
- Set up SPF and DKIM records
- Wait for DNS propagation (can take up to 48 hours)
Configure Your Application
Use these settings in your email client or application:
- Server:
in-v3.mailjet.com - Port:
587(TLS) or465(SSL) - Username: Your API Key
- Password: Your Secret Key
Code Examples
import smtplib
from email.mime.text import MIMEText
from email.mime.multipart import MIMEMultipart
# Mailjet SMTP settings
SMTP_HOST = "in-v3.mailjet.com"
SMTP_PORT = 587
API_KEY = "your-api-key"
SECRET_KEY = "your-secret-key"
# Create message
msg = MIMEMultipart()
msg['From'] = "sender@yourdomain.com"
msg['To'] = "recipient@example.com"
msg['Subject'] = "Test Email via Mailjet"
body = "This is a test email sent via Mailjet SMTP."
msg.attach(MIMEText(body, 'plain'))
# Send email
with smtplib.SMTP(SMTP_HOST, SMTP_PORT) as server:
server.starttls()
server.login(API_KEY, SECRET_KEY)
server.send_message(msg)
print("Email sent successfully!")
Mailjet Features
Real-time Analytics
Track opens, clicks, bounces, and unsubscribes in real-time
A/B Testing
Test different subject lines and content to optimize performance
Template Builder
Drag-and-drop email builder with responsive templates
GDPR Compliant
EU-based servers available, fully GDPR compliant
Troubleshooting
Authentication failed
Make sure you're using your API Key as username and Secret Key as password, not your Mailjet login credentials.
Emails going to spam
Verify your sender domain and set up SPF, DKIM, and DMARC records. Check your sender reputation in Mailjet dashboard.
Daily limit reached
Free accounts are limited to 200 emails/day. Upgrade to a paid plan for higher volumes.
Frequently Asked Questions
What's the difference between Mailjet and Mailgun?
Both are owned by Sinch. Mailjet focuses on both transactional and marketing email with a visual editor, while Mailgun is more developer-focused for transactional email.
Can I use Mailjet for marketing emails?
Yes, Mailjet supports both transactional and marketing emails. It includes contact management, segmentation, and campaign tools.
Does Mailjet support webhooks?
Yes, Mailjet provides webhooks for events like opens, clicks, bounces, spam reports, and unsubscribes.