簡體   English   中英

使用Iron IO Laravel 4發送郵件

[英]Send mail with Iron IO Laravel 4

我用命令:

php artisan queue:subscribe laravel http://your-site-url/queue/push

並得到錯誤:

[Http_Exception] http錯誤:0 | SSL證書問題。 驗證CA證書是否正常。 細節:

錯誤:14090086:SSL例程:SSL3_GET_SERVER_CERTIFICATE:證書驗證失敗。 隊列失敗:訂閱[--type [=“...”]]隊列網址

我在iron.io注冊並在app / config / queue.php中添加了project_id,token和default key driver to iron

這是一個IronIO問題,要在Laravel上規避它,你可以將它添加到你的app/start/global.php文件中:

Queue::connection()->getIron()->ssl_verifypeer = false;

看看供應商\\ iron-io \\ iron_mq自述文件:

Troubleshooting

http error: 0

If you see  `Uncaught exception 'Http_Exception' with message 'http error: 0 | '`
it most likely caused by misconfigured cURL https sertificates.
There are two ways to fix this error:

1. Disable SSL sertificate verification - add this line after IronMQ initialization: `$ironmq->ssl_verifypeer = false;`
2. Switch to http protocol - add this to configuration options: `protocol = http` and `port = 80`

此外,您可以直接在IronMQ網站管理頁面中手動訂閱您的網址:

1. Go to https://hud.iron.io/dashboard

2. On your projects, click in tue MQ button of your project

3. Select the "Queues" tab

4. Click on your queue name, this must be the same you subscribed to using the command "artisan queue:subscribe"

5. In the "PUSH INFORMATION" box, check if your queue push type is set to "multicast".

6. Add a your url in the "SUBSCRIBERS" box.

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM