Skip to main content

Email (SMTP)

The Email (SMTP) category configures outbound email for your Hawkra instance. Email is used for user registration verification codes, password reset links, and system notifications. Without SMTP configured, all email-dependent features are disabled.

SMTP configuration panel

Settings Reference

SettingKeyTypeDefaultDescription
SMTP Hostsmtp_hostStringEmptyHostname of your SMTP server (e.g., smtp.gmail.com, smtp.sendgrid.net)
SMTP Portsmtp_portInteger587SMTP port. Use 587 for STARTTLS or 465 for SSL/TLS
SMTP Encryptionsmtp_encryptionDropdownstarttlsstarttls (port 587) or ssl (port 465)
SMTP Usernamesmtp_usernameStringEmptyUsername for SMTP authentication
SMTP Passwordsmtp_passwordStringEmptyPassword or API key for SMTP authentication
SMTP From Addresssmtp_from_addressStringEmptySender address for outbound emails (e.g., noreply@yourdomain.com)

Provider Quick Reference

ProviderHostPortEncryptionDocs
Gmailsmtp.gmail.com587STARTTLSApp Passwords
SendGridsmtp.sendgrid.net587STARTTLSSMTP Docs
Mailgunsmtp.mailgun.org587STARTTLSSMTP Docs

Configuration via Environment Variables

SMTP can also be configured entirely through environment variables. When all six SMTP environment variables are set, the backend initializes email support at startup without needing dashboard configuration.

SettingEnvironment Variable
SMTP HostSMTP_HOST
SMTP PortSMTP_PORT
SMTP EncryptionSMTP_ENCRYPTION
SMTP UsernameSMTP_USERNAME
SMTP PasswordSMTP_PASSWORD
SMTP From AddressSMTP_FROM_ADDRESS
note

Environment variables take priority over dashboard values. If you set SMTP_HOST as an environment variable, the dashboard value for SMTP Host is ignored at runtime. This is useful for keeping secrets like the SMTP password in your .env file rather than the database.