@luceos I promised to try and come back. I set up a test site today using the very same container setup I have with php 8.1. I changed the base container to be rhel 10 php 8.3. Same error results as earlier with 8.2 version.
I did all the mail configs and the basic configs while starting with 8.1 image. I verified the mail works. Then I built the very same flarum setup with rhel10 php 8.3, and restarted the container after chaning the updated base image. The installation and settings remained the same.
The email gets sent, but the "send test email" button causes red text: Oops! Something went wrong. Please reload the page and try again.
I enabled debugging, and the while I click the error text's debug link, I get:
<br />
<b>Deprecated</b>: Callables of the form ["Swift_SmtpTransport", "Swift_Transport_EsmtpTransport::__construct"] are deprecated in <b>/opt/app-root/src/vendor/swiftmailer/swiftmailer/lib/classes/Swift/SmtpTransport.php</b> on line <b>36</b><br />
<br />
<b>Deprecated</b>: Callables of the form ["Swift_Message", "Swift_Mime_SimpleMessage::__construct"] are deprecated in <b>/opt/app-root/src/vendor/swiftmailer/swiftmailer/lib/classes/Swift/Message.php</b> on line <b>46</b><br />
<br />
<b>Fatal error</b>: Uncaught Laminas\HttpHandlerRunner\Exception\EmitterException: Output has been emitted previously; cannot emit response in /opt/app-root/src/vendor/laminas/laminas-httphandlerrunner/src/Exception/EmitterException.php:21
Stack trace:
#0 /opt/app-root/src/vendor/laminas/laminas-httphandlerrunner/src/Emitter/SapiEmitterTrait.php(42): Laminas\HttpHandlerRunner\Exception\EmitterException::forOutputSent()
#1 /opt/app-root/src/vendor/laminas/laminas-httphandlerrunner/src/Emitter/SapiEmitter.php(22): Laminas\HttpHandlerRunner\Emitter\SapiEmitter->assertNoPreviousOutput()
#2 /opt/app-root/src/vendor/laminas/laminas-httphandlerrunner/src/RequestHandlerRunner.php(75): Laminas\HttpHandlerRunner\Emitter\SapiEmitter->emit(Object(Laminas\Diactoros\Response\EmptyResponse))
#3 /opt/app-root/src/vendor/flarum/core/src/Http/Server.php(45): Laminas\HttpHandlerRunner\RequestHandlerRunner->run()
#4 /opt/app-root/src/public/index.php(26): Flarum\Http\Server->listen()
#5 {main}
thrown in <b>/opt/app-root/src/vendor/laminas/laminas-httphandlerrunner/src/Exception/EmitterException.php</b> on line <b>21</b><br />
Flarum setup is here
Containerfile is here
smtp options are:
ikke+noreplytest@my.domain
smtp.my.domain
587
tls
username
password