Integrations

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

  1. Go to Settings → Integrations → Email (SMTP)
  2. Enter your SMTP credentials:
FieldDescriptionExample
SMTP HostMail server addresssmtp.gmail.com
SMTP PortServer port587 (TLS) or 465 (SSL)
UsernameLogin email[email protected]
PasswordApp-specific passwordxxxx xxxx xxxx xxxx
From EmailSender email displayed to recipients[email protected]
From NameSender name"Megaprep Academy"
EncryptionSecurity protocolTLS (recommended) or SSL
  1. Click Test Connection to verify
  2. Click Save

📸 Screenshot: SMTP configuration form


Provider-Specific Guides

Gmail

SettingValue
Hostsmtp.gmail.com
Port587
EncryptionTLS
UsernameYour Gmail address
PasswordApp 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

SettingValue
Hostsmtp.sendgrid.net
Port587
EncryptionTLS
Usernameapikey
PasswordYour SendGrid API key

Amazon SES

SettingValue
Hostemail-smtp.{region}.amazonaws.com
Port587
EncryptionTLS
UsernameSES SMTP Username
PasswordSES SMTP Password

What Emails Are Sent

Email TypeTrigger
WelcomeStudent enrolls in a course
Payment ReceiptPayment is recorded
Installment ReminderInstallment due date approaching
Exam NotificationNew exam published
Result PublishedExam results are released
Password ResetStudent requests password reset
OTPLogin verification code

Troubleshooting

IssueSolution
"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 spamEnsure From Email matches your domain. Setup SPF/DKIM records
"Connection timed out"Your server may be blocking outbound SMTP. Contact hosting provider

Related Articles

SMTPemailsetupGmailSendGridSESnotifications