【发布时间】:2017-06-18 10:00:18
【问题描述】:
我有一个 Laravel 5.2 应用程序,我需要发送电子邮件,所以我选择 SparkPost 作为邮件服务。我配置了 api_key、驱动程序等。但是现在我得到了这个错误:
Client error: `POST https://api.sparkpost.com/api/v1/transmissions` resulted in a `400 Bad Request` response:
{ "errors": [ { "message": "Invalid domain", "description": "No sending domain specified", "code": "7001" } ] }
我读到这是因为域无效,所以,如果我没有域,我不清楚如何配置域,我只有一个 IP 地址为 45.xxx.xxx.xxx 的测试服务器或我有哪些选项可以发送邮件?
【问题讨论】:
标签: email laravel-5.2 sparkpost laravel-mail