SendGrid WordPress Plugin + Official PHP Client Library
-
Hi guys,
I’m hoping someone can help me understand the relationship between this plugin and SendGrid’s own PHP Client Library (https://github.com/sendgrid/sendgrid-php). Looking at the plugin documentation at SendGrid’s website, it looks like there’s at least some cross-referencing happening, but I didn’t see all of the same library files in the plugin. Attempting to post a new campaign using an installed copy of the library while the plugin is activated results in an error (“Fatal error: Cannot declare class SendGrid\Email, because the name is already in use in /xxxxx/sendgrid-php/lib/helpers/mail/Mail.php on line 877”). Am I able to use any other library functions to access non email/contact endpoints with just the plugin activated?
If it’s helpful, I’m ultimately trying to create and send a new campaign based on a WP_Query for the day’s curated posts.
- The topic ‘SendGrid WordPress Plugin + Official PHP Client Library’ is closed to new replies.