Configuring SMTP
To send email notifications, you need to configure an SMTP provider. Flux supports any standard SMTP server (Gmail, Outlook, SendGrid, AWS SES, Mailgun, etc.).
Step 1: Gather Credentials
You will need the following details from your email provider:
- Host: e.g.,
smtp.gmail.comoremail-smtp.us-east-1.amazonaws.com. - Port: Usually
587(STARTTLS) or465(SSL/TLS). - Username: Often your email address or an API Key ID.
- Password: Your email password or API Secret Key.
- Note: If using Gmail, you must generate an App Password.
Step 2: Configure Flux
- SSH into your Flux instance:
- Select SMTP -> n (Create New).
- Config Name: Give it a unique ID (e.g.,
main-mailer). - Host: Enter the SMTP host.
- Port: Enter the port number.
- Username & Password: Enter your credentials.
- From Address: The email address that messages will appear to come from.
- Crucial: Many providers (like SES or Gmail) strictly enforce that this address matches the authenticated user.
- Select Save.
You can always manage the SMTP that you already created by pressing enter on the table or x to delete them
Step 3: Attach to Form
- Go back to the Dashboard.
- Select Manage Forms.
- Select the form you want to connect.
- Select Manage Notifications.
- Add a new notification with Method: SMTP and select your new provider (
main-mailer). - Set the Target to the email address where you want to receive the submissions.
Security Note
Your SMTP password is encrypted immediately upon saving using the Flux Master Key (AES-GCM). It is never stored in plain text on the disk.