AdministrationConfiguration Files
SMTP Configuration
Configure the SMTP email settings for your Gigantics instance to enable email notifications and communications.
Configuration Properties
The SMTP configuration section in your config/default.yaml file controls how Gigantics sends emails:
smtp:
host: smtp.ethereal.email
port: 587
username: 'montana.kulas@ethereal.email'
password: '2q6GhNY5gc72msh7z4'
baseUrl: 'http://localhost:5000'
subject: 'no reply'
from: 'no-replay@gigantics.io'Property Details
host
- Type: String
- Default:
'smtp.ethereal.email' - Description: The hostname of your SMTP server
port
- Type: Number
- Default:
587 - Description: The port number your SMTP server uses
username
- Type: String
- Default:
'montana.kulas@ethereal.email' - Description: The username for authenticating with the SMTP server
password
- Type: String
- Default:
'2q6GhNY5gc72msh7z4' - Description: The password for authenticating with the SMTP server
baseUrl
- Type: String
- Default:
'http://localhost:5000' - Description: Base URL used in email templates
subject
- Type: String
- Default:
'no reply' - Description: Default subject line for emails
from
- Type: String
- Default:
'no-replay@gigantics.io' - Description: The "from" address used for sending emails
Examples
Gmail SMTP Configuration
smtp:
host: smtp.gmail.com
port: 587
username: 'your-email@gmail.com'
password: 'your-app-password'
baseUrl: 'http://localhost:5000'
subject: 'Gigantics Notification'
from: 'your-email@gmail.com'Outlook SMTP Configuration
smtp:
host: smtp-mail.outlook.com
port: 587
username: 'your-email@outlook.com'
password: 'your-password'
baseUrl: 'http://localhost:5000'
subject: 'Gigantics Notification'
from: 'your-email@outlook.com'Custom SMTP Server
smtp:
host: mail.yourcompany.com
port: 465
username: 'gigantics@yourcompany.com'
password: 'secure_password'
baseUrl: 'https://gigantics.yourcompany.com'
subject: 'Gigantics Notification'
from: 'gigantics@yourcompany.com'Security Considerations
- App Passwords: For Gmail and other providers, use app-specific passwords instead of your main account password
- Encryption: Use TLS/SSL ports (587, 465) when available
- Credentials: Never commit SMTP credentials to version control
- Access: Restrict access to the configuration file containing SMTP credentials
Testing Email Configuration
You can test your SMTP configuration by:
-
Restarting the application after configuration changes:
./gig stop ./gig start -
Triggering a test email through the application interface
-
Checking the logs for any SMTP connection errors
Common SMTP Providers
| Provider | Host | Port | TLS/SSL |
|---|---|---|---|
| Gmail | smtp.gmail.com | 587 | Yes |
| Outlook | smtp-mail.outlook.com | 587 | Yes |
| Yahoo | smtp.mail.yahoo.com | 587 | Yes |
| SendGrid | smtp.sendgrid.net | 587 | Yes |
| Amazon SES | email-smtp.us-east-1.amazonaws.com | 587 | Yes |
For production use, make sure to replace the default development credentials with your actual SMTP server credentials.