Sendgrid-php: quick start code returns 0 and dont send email

Created on 17 Oct 2018  路  6Comments  路  Source: sendgrid/sendgrid-php

Issue Summary

I copied the code of the quick start code , redirected de require correctly , but when i run the code it returns 0, it was working before but now it stopped working again.this is the third time that it happens

Steps to Reproduce

git clone [email protected]:sendgrid/sendgrid-php.git
write this test PHP script and replace my custom values
execute test PHP script
I saw the other issues but it didnt help.

easy help wanted help wanted docs update up for grabs up-for-grabs

All 6 comments

Thanks @Enchiridion!

If either of you are up for it, this would be great to add to our TROUBLESHOOTING.md section for Hacktoberfest :)

With Best Regards,

Elmer

I did a PR that addresses code 0 returns:
https://github.com/sendgrid/php-http-client/pull/99

Thanks @alextech! I'm hoping to get your fix added soon.

I'm leaving this issue open so we can get the documentation @Enchiridion exposed into our TROUBLESHOOTING.md section.

This entry has save me the week! Even from sendgrid support don't know what was going on.
Thanks to the great subject I found the source of my problem and I could keep going with my project.
First, I set the CURLOPT_SSL_VERIFYPEER to false, but afterwards I fixed the CA issue following the link provided.

I can only say ... thanks thanks thanks, great post!

Since there has been no activity on this issue since March 1, 2020, we are closing this issue. Please feel free to reopen or create a new issue if you still require assistance. Thank you!

Was this page helpful?
0 / 5 - 0 ratings

Related issues

morazain picture morazain  路  3Comments

peluprvi picture peluprvi  路  5Comments

bjornmann picture bjornmann  路  3Comments

jverlee picture jverlee  路  4Comments

rsalunga29 picture rsalunga29  路  4Comments