如标题所言,邮件配置,测试邮件报错200,但实际上是成功收到了测试邮件的。
报错如下
POST https://forum.acgi.moe/api/mail/test
<br />
<b>Deprecated</b>: Callables of the form [“Swift_SmtpTransport”, “Swift_Transport_EsmtpTransport::construct”] are deprecated in <b>/www/wwwroot/forum.acgi.moe/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>/www/wwwroot/forum.acgi.moe/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 /www/wwwroot/forum.acgi.moe/vendor/laminas/laminas-httphandlerrunner/src/Exception/EmitterException.php:20
Stack trace:
#0 /www/wwwroot/forum.acgi.moe/vendor/laminas/laminas-httphandlerrunner/src/Emitter/SapiEmitterTrait.php(42): Laminas\HttpHandlerRunner\Exception\EmitterException::forOutputSent()
#1 /www/wwwroot/forum.acgi.moe/vendor/laminas/laminas-httphandlerrunner/src/Emitter/SapiEmitter.php(21): Laminas\HttpHandlerRunner\Emitter\SapiEmitter->assertNoPreviousOutput()
#2 /www/wwwroot/forum.acgi.moe/vendor/laminas/laminas-httphandlerrunner/src/RequestHandlerRunner.php(75): Laminas\HttpHandlerRunner\Emitter\SapiEmitter->emit()
#3 /www/wwwroot/forum.acgi.moe/vendor/flarum/core/src/Http/Server.php(45): Laminas\HttpHandlerRunner\RequestHandlerRunner->run()
#4 /www/wwwroot/forum.acgi.moe/index.php(26): Flarum\Http\Server->listen()
#5 {main}
thrown in <b>/www/wwwroot/forum.acgi.moe/vendor/laminas/laminas-httphandlerrunner/src/Exception/EmitterException.php</b> on line <b>20</b><br />