You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If you're PHP version doesn't support namespaces (something before v5.3) then I don't think so. You can still use the SparkPost API without the library.
Your Readme file says "The recomended way to install SparkPost is with composer". Howere I still think there are should be a way to install it without it.
You can clone it locally, grab the needed dependencies and transfer them to the application, but I don't know how it will play with unsupported versions of PHP.
Yeah, you can rip out the "sandbox" => true if you are not using the sparkpostbox.com sending domain. I'm gonna go ahead and close this issue. Feel free to shout if you hit any other problems, or ask in our community slack.
Thank you so much, for this Awesome Help. It's helping me so much to understand how the API should be coded. Awesome job! Thanks again, for the sharing
Activity
avigoldman commentedon Mar 28, 2017
If you're PHP version doesn't support namespaces (something before v5.3) then I don't think so. You can still use the SparkPost API without the library.
pitometsyurii commentedon Mar 28, 2017
Your Readme file says "The recomended way to install SparkPost is with composer". Howere I still think there are should be a way to install it without it.
pitometsyurii commentedon Mar 28, 2017
Thanks for your replay. Is there a guide how to use SparkPost API without the library from PHP?
avigoldman commentedon Mar 28, 2017
You can clone it locally, grab the needed dependencies and transfer them to the application, but I don't know how it will play with unsupported versions of PHP.
avigoldman commentedon Mar 28, 2017
I think I have something that uses the SparkPost API with curl somewhere, one sec :)
pitometsyurii commentedon Mar 28, 2017
Thanks, I appreciate.
avigoldman commentedon Mar 28, 2017
@yupitomets I didn't find the thing I was thinking of but I whipped this sample up. Let me know if you have any issues with it.
pitometsyurii commentedon Mar 28, 2017
The script is working however I've received error in a response.
Sending email... Email results: { "errors": [ { "message": "Message generation rejected", "description": "Sending domain sandbox option mismatch", "code": "1902" } ], "results": { "total_rejected_recipients": 0, "total_accepted_recipients": 1, "id": "48533314143036926" } } Listing sending domains... Sending domain results: { "results": [ { "shared_with_subaccounts": false, "domain": "yuppi.com.ua", "status": { "ownership_verified": true, "spf_status": "unverified", "abuse_at_status": "unverified", "compliance_status": "valid", "dkim_status": "valid", "verification_mailbox_status": "unverified", "postmaster_at_status": "unverified" } }, { "shared_with_subaccounts": false, "domain": "yuppiannunci.it", "status": { "ownership_verified": true, "spf_status": "unverified", "abuse_at_status": "unverified", "compliance_status": "valid", "dkim_status": "valid", "verification_mailbox_status": "unverified", "postmaster_at_status": "unverified" } } ] }
pitometsyurii commentedon Mar 28, 2017
if to set sandbox=false it is working. Thank you very much!)
avigoldman commentedon Mar 28, 2017
Yeah, you can rip out the
"sandbox" => trueif you are not using thesparkpostbox.comsending domain. I'm gonna go ahead and close this issue. Feel free to shout if you hit any other problems, or ask in our community slack.fernandoaurelio commentedon Nov 6, 2018
Thank you so much, for this Awesome Help. It's helping me so much to understand how the API should be coded. Awesome job! Thanks again, for the sharing