Configure Flarum Email Settings
Configure outgoing email settings in Flarum so the forum can send notifications, password resets, and verification emails.
Admin Panel Method
- Log in as an administrator.
- Go to Admin Panel → Mail.
- Set the Mail Driver to your preferred method:
SMTP,Mailgun,Log(dev only), orSendmail. - For SMTP, fill in the fields:
Host : smtp.example.com
Port : 587
Encryption : TLS
Username : your@email.com
Password : yourpassword- Save and send a test email to confirm delivery.
config.php Method
Alternatively, set mail config directly in config.php in the Flarum root:
return [
'mail.driver' => 'smtp',
'mail.host' => 'smtp.example.com',
'mail.port' => 587,
'mail.username' => 'your@email.com',
'mail.password' => 'yourpassword',
'mail.encryption' => 'tls',
'mail.from.address' => 'noreply@example.com',
'mail.from.name' => 'My Forum',
];Verify
Use the Send Test Mail button in the admin panel, or trigger a password reset for a test account.