1
votes

I have l5.2 and I followed this steps in hooking sparkpost and laravel and I reverted my services and mail.php to its original configuration:

https://medium.com/@petehouston/send-mail-with-sparkpost-in-laravel-b5e30a941ebf#.s2hebpwb6

But I get this error:

cURL error 60: SSL certificate problem: unable to get local issuer certificate (see http://curl.haxx.se/libcurl/c/libcurl-errors.html)

1
You may need to install a certificate on your local machine. Please check the answers here: stackoverflow.com/questions/29822686/…EddyTheDove
Yeah i'm on it after I've seen a related question. Thanks anywaysTheBAST
Now i'm done with that. there's another error can you p lease help me ?TheBAST
Client error: POST https://api.sparkpost.com/api/v1/transmissions resulted in a 400 Bad Request response: { "errors": [ { "message": "Invalid domain", "description": "Unconfigured Sending Domain <example.com> ", "code": "7001" (truncated...)TheBAST
Oh yeah. It happens all the time. So with Parkpost, you have to add your sending domains. E.g: Let's say you send emails from 'sand.com'. You need to login to your sparkpost dashboard and add 'sand.com' to your sending domains. Make sure you have ownership of the domain as they will ask to verify the domain.EddyTheDove

1 Answers

0
votes

This is a problem with your local cacert and usually occurs when using xampp, wamp or similar related software because when making default curl requests there is no certificate in place.

My suggestion would be to download a cacert from here: http://curl.haxx.se/ca/cacert.pem

Copy the cert to C:\Xampp\certs

Update your PHP.ini file with:

curl.cainfo="C:/xampp/certs/ca-bundle.crt"
openssl.cafile="C:/xampp/certs/ca-bundle.crt"

Restart your web server and you should be good to go.