I think I know what the issue is. There is an extra "endpoint" field required for EU host. So in my original laravel site I have MAILGUN_ENDPOINT=api.eu.mailgun.net
and in service.php there is:
'mailgun' => [
'domain' => env('MAILGUN_DOMAIN'),
'secret' => env('MAILGUN_SECRET'),
'endpoint' => env('MAILGUN_ENDPOINT'),
],
A post on stackoverflow mentions that the api endpoint setting is accessed by vendor/laravel/framework/src/Illuminate/Mail/TransportManager.php:138
return new MailgunTransport(
$this->guzzle($config),
$config['secret'],
$config['domain'],
$config['endpoint'] ?? null
);
Is this implemented in Flarum? Can I just add a field in the settings table or something?
(still, the error message should be "Domain not found" , not the one I got)