sendgrid / wordpress

SendGrid plugin for WordPress
51 stars 64 forks source link

Fix broken include #22

Closed markjaquith closed 9 years ago

markjaquith commented 9 years ago

vendor/autoload.php is specified relatively, and PHP says the file doesn't exist, so mail isn't being sent. Using __DIR__ makes the include a full system path and fixes the issue.

Note that this issue will only occur on sites with a vendor directory in the root. PHP is seeing that and guessing (wrongly) that’s the one you mean. By being explicit, it won't guess wrongly.

phh commented 9 years ago

+1

danielamihalache commented 9 years ago

This change will be added in the next release here: https://wordpress.org/support/plugin/sendgrid-email-delivery-simplified. I will also update this github repo. Thanks for the feedback!