How to Setup SMTP (Email)
Configure SMTP email settings with Gmail, SendGrid, SES, or custom server for transactional emails and notifications
How to Setup SMTP (Email)
Configure email sending so students receive enrollment confirmations, payment receipts, exam notifications, and other transactional emails.
Setting Up SMTP
- Go to Settings → Integrations → Email (SMTP)
- Enter your SMTP credentials:
| Field | Description | Example |
|---|---|---|
| SMTP Host | Mail server address | smtp.gmail.com |
| SMTP Port | Server port | 587 (TLS) or 465 (SSL) |
| Username | Login email | [email protected] |
| Password | App-specific password | xxxx xxxx xxxx xxxx |
| From Email | Sender email displayed to recipients | [email protected] |
| From Name | Sender name | "Megaprep Academy" |
| Encryption | Security protocol | TLS (recommended) or SSL |
- Click Test Connection to verify
- Click Save
📸 Screenshot: SMTP configuration form
Provider-Specific Guides
Gmail
| Setting | Value |
|---|---|
| Host | smtp.gmail.com |
| Port | 587 |
| Encryption | TLS |
| Username | Your Gmail address |
| Password | App Password (not regular password) |
Important: You must use an App Password, not your regular Gmail password. Enable 2-Step Verification first, then generate an App Password.
SendGrid
| Setting | Value |
|---|---|
| Host | smtp.sendgrid.net |
| Port | 587 |
| Encryption | TLS |
| Username | apikey |
| Password | Your SendGrid API key |
Amazon SES
| Setting | Value |
|---|---|
| Host | email-smtp.{region}.amazonaws.com |
| Port | 587 |
| Encryption | TLS |
| Username | SES SMTP Username |
| Password | SES SMTP Password |
What Emails Are Sent
| Email Type | Trigger |
|---|---|
| Welcome | Student enrolls in a course |
| Payment Receipt | Payment is recorded |
| Installment Reminder | Installment due date approaching |
| Exam Notification | New exam published |
| Result Published | Exam results are released |
| Password Reset | Student requests password reset |
| OTP | Login verification code |
Troubleshooting
| Issue | Solution |
|---|---|
| "Connection refused" | Check host and port. Try port 587 with TLS |
| "Authentication failed" | For Gmail, use App Password. For SendGrid, username must be apikey |
| Emails going to spam | Ensure From Email matches your domain. Setup SPF/DKIM records |
| "Connection timed out" | Your server may be blocking outbound SMTP. Contact hosting provider |
Related Articles
- How to Setup SMS — SMS notifications
- How to Setup Payment Gateways — Online payments
- How to Setup Automation — Automated email workflows
SMTPemailsetupGmailSendGridSESnotifications
More in Integrations
How to Setup SMS
Configure SMS providers (BulkSMSBD, Twilio) for OTP verification, notifications, and marketing messages
How to Setup Payment Gateways
Configure SSLCommerz, bKash, Nagad, Stripe, and other payment gateways for online course payments
How to Setup AI Providers
Configure OpenAI, Gemini, and other AI providers for AI-powered question generation, grading, and content creation
How to Setup Other Integrations
Configure Cloudflare R2 storage, CDN, and other third-party service integrations