- Edited
Installation Process
Yesterday/today, I installed Flarum. Everything is working fine except for emails—I am not receiving confirmation emails or test emails from the admin settings.
Initially, I tried using SMTP (Gmail) and spent five hours troubleshooting, but I couldn’t get it to work. I also attempted Mailgun, but it’s not a viable option for me since it has limitations on the number of emails I can send.
Today, I attempted to configure SMTP using my web hosting provider’s mail server (Hetzner). I contacted Hetzner support, and they told me my SMTP host is www629.your-server.de. I entered all the required details, but it’s still not working.
SMTP Configurations
Gmail SMTP Configuration (Didn't Work)
`Addresses (Default): noreply@forum.yivani.de
Outgoing Email Format: Default (Multipart)
Choose a Driver: SMTP
Host: smtp.gmail.com
Port: 587
Encryption: TLS (or tsl)
Username: forum.yivani@gmail.com
Password: App Password (I tried this method; my forum account had stricter security than my main account)
`
IMAP was enabled in Gmail.
However, emails still did not send.
Hetzner SMTP Configuration (Also Didn't Work)
`Addresses (Default): noreply@forum.yivani.de
Outgoing Email Format: Default (Multipart)
Choose a Driver: SMTP
Host: www629.your-server.de (also tried mail.your-server.de)
Port: 587
Encryption: TLS (or tsl)
Username: info@yivani.de
Password: Mail account password (set when creating the email)
`
Again, emails did not send
Flarum Installation Steps
I installed Flarum by first installing Composer and verifying its version:
composer --version
Then, I installed Flarum using:
composer create-project flarum/flarum . --stability=beta
It installed various dependencies, and I then installed the Extension Manager:
composer require flarum/extension-manager:"*"
Configuration File (config.php)
Here is my config.php file:
<?php return array (
'debug' => false,
'database' =>
array (
'driver' => 'mysql',
'database' => 'forum_db',
'prefix' => '',
'prefix_indexes' => true,
'host' => 'sql573.your-server.de',
'port' => 3306,
'username' => 'USERNAME',
'password' => 'PASSWORD',
'charset' => 'utf8mb4',
'collation' => 'utf8mb4_unicode_ci',
'engine' => 'InnoDB',
'strict' => false,
),
'url' => 'https://forum.yivani.de',
'paths' =>
array (
'api' => 'api',
'admin' => 'admin',
),
'headers' =>
array (
'poweredByHeader' => true,
'referrerPolicy' => 'same-origin',
),
'mail' =>
array (
'driver' => 'smtp',
'host' => 'www629.your-server.de',
'port' => 587,
'encryption' => 'tls',
'username' => 'info@yivani.de',
'password' => 'PASSWORD',
'from' =>
array (
'address' => 'info@yivani.de',
'name' => 'Yivani Forum',
),
),
);
Troubleshooting Steps Tried (Still Not Working)
Enabled IMAP for Gmail.
Tried Mailgun (not an option due to email limitations).
Contacted Hetzner support and verified SMTP host settings.
Attempted different configurations for TLS and SMTP hosts.
Any Suggestions on What Might Be Wrong?
If anyone has experience with Flarum SMTP configurations, I’d appreciate your help!