Laravel 5.1 Mail::queue 亚马逊 SQS 错误 404

Laravel 5.1 Mail::queue Amazon SQS error 404

我第一次遇到队列服务(在那种情况下是 Amazon SQS)。我配置 queue.php 并尝试发送这样的邮件:

\Mail::queue('emails.reminder', [], function($message){
    $message->to('xxxxxxx@gmail.com', 'XXX')->subject('XXX');
});

但是我有一个错误:

Error executing "SendMessage" on "https://sqs.eu-central-1.amazonaws.com/EmailQueue"; AWS HTTP error: Client error: `POST https://sqs.eu-central-1.amazonaws.com/EmailQueue` resulted in a `404 Not Found` response:
<?xml version="1.0"?><ErrorResponse xmlns="http://queue.amazonaws.com/doc/2012-11-05/"><Error><Type>Sender</Type><Code>I (truncated...)
InvalidAddress (client): The address /EmailQueue is not valid for this endpoint. - <?xml version="1.0"?><ErrorResponse xmlns="http://queue.amazonaws.com/doc/2012-11-05/"><Error><Type>Sender</Type><Code>InvalidAddress</Code><Message>The address /EmailQueue is not valid for this endpoint.</Message><Detail/></Error><RequestId>72ea954e-eaf4-55b8-96bb-c6499a1e4015</RequestId></ErrorResponse>

谁能帮帮我?

谢谢!

我犯了一个很简单的错误-在queue.php块

'sqs' => ['queue'  => 'https://sqs.eu-central-1.amazonaws.com/XXXXXXX/QueueNAME']

我只是使用队列名称,没有完整的 url(但它需要像这样的完整 URL:https://sqs.eu-central-1.amazonaws.com/XXXXXXX/QueueNAME)。

谢谢。