athens / sendgrid
SendGrid email sending wrapper for the Athens framework.
Requires
- athens/core: 0.*
- propel/propel: ~2.0@dev
- sendgrid/sendgrid: ~4.0
Requires (Dev)
- athens/standard: *
- codeclimate/php-test-reporter: dev-master
- phpdocumentor/phpdocumentor: 2.7.*
- phpunit/phpunit: 4.5.*
This package is not auto-updated.
Last update: 2024-12-21 19:39:08 UTC
README
SendGrid
Send your Athens framework emails using your SendGrid account.
By default, the Athens framework uses the Php command send
to deliver emails. If you have a SendGrid account, you can use this package to send your emails using SendGrid instead.
Use
Because this package has depends on multiple other packages, we strongly recommend installing it using Composer. Add athens/sendgrid
to your your composer.json
:
"require": {
...
"athens/sendgrid": "0.*",
...
},
Then update/install your Composer dependencies.
If you haven't already done so, create a SendGrid API key. Paste that into your local_settings.php
:
...
define('SENDGRID_API_KEY', 'mybiglongsendgridapikey');
...
Now define your default emailer in setup.php
:
...
use Athens\Core\Etc\Settings;
...
Settings::setDefaultEmailerClass('Athens\SendGrid\Emailer');
...
That's it! If you provided the correct API key, your Athens emails are now being sent with SendGrid! Check your SendGrid dashboard to confirm.
Getting Involved
Feel free to open pull requests or issues. GitHub is the canonical location of this project.
Here's the general sequence of events for code contribution:
- Open an issue in the issue tracker.
- In any order:
- Submit a pull request with a failing test that demonstrates the issue/feature.
- Get acknowledgement/concurrence.
- Revise your pull request to pass the test in (2). Include documentation, if appropriate.