Laravel 5.2 reset password + Mandrill
I have Laravel 5.2 fresh installation.
I did following:
1- I have set up my .env file
MAIL_DRIVER=mandrill
MAIL_HOST=smtp.mandrillapp.com
MAIL_PORT=587
MAIL_USERNAME=my_mandrill_email
MAIL_PASSWORD=my_mandrill_key
MAIL_ENCRYPTION=null
2- I have installed Guzzle (https://github.com/guzzle/guzzle)
3- I have setup my email in view (https://github.com/laravel/laravel/blob/5.0/resources/views/emails/password.blade.php)
4- I have fixed the certificate issue (PHP cURL error code 60)
So it seems everything is done correctly.
When I fill email to reset password and press Send Password Reset Link button, I get following error
Server error: POST
https://mandrillapp.com/api/1.0/messages/send-raw.json resulted in a 500 Internal Server Error response: {"status":"error","code":-1,"name":"ValidationError","message":"You must specify a key value"}
I have check my log in Mandrill (https://mandrillapp.com/settings/api) there is no logs for my action.
From what I read in error message it seems that Mandrill is not getting the required values.
Question: What is missing/wrong?
Note: right now I am working on my local environment building the app. My local environment Windows 10/Bitnami WAMP stack 7
Btw, I have also asked this question on stackoverflow with luck to answer yet.
If you're using the API (mandrill driver), you need to set your API key up.
Go into config/services.php and you will see this
'mandrill' => [
'secret' => env('MANDRILL_SECRET'),
],
Set an ENV var for MANDRILL_SECRET so it uses that for the API requests.
Also
- Remove the host, port, username, and password entries. They're for SMTP, not the API.
- Update
MAIL_ENCRYPTIONto "tls".
Please or to participate in this conversation.