我们可以在laravel 5.4中使用Postmark邮件服务提供商吗?

时间:2017-03-27 11:19:23

标签: php laravel postmark

我在 laravel 5.4 中使用邮戳(邮件服务提供商)时出现以下错误

例外: -

  

' ErrorException'消息'未设置的非法偏移类型'在   ...供应商/ laravel /框架/ SRC /照亮/容器/ Container.php:1057

请帮忙

1 个答案:

答案 0 :(得分:0)

这将解决它:

https://github.com/Snowfire/Laravel-Postmark-Driver/issues/11

"我通过更改其在行号上的用法来替换它。 PostmarkServiceProvider.php文件中的36个,它是

$ this-> app [' swift.mailer'] = $ this-> app-> share(功能($ app)使用($ postmark){

$ this-> app-> singleton(' swift.mailer',功能($ app)使用($ postmark){"

它并不理想,但看起来包装没有得到维护。

此外,升级到Laravel 5.5会带来新版OpenBuildings \ postmark的兼容性问题,这可能更容易解决,使用带邮戳的SMTP。

相关问题