SendGrid integration plugin
This plugin implements the SendGrid subscription form functionality for the OctoberCMS.
-
Clone this plugin repository and name it to
plugins/sarahman/mailer
. -
Go to that folder and run this command:
composer install
- Add the following code in the
config/services.php
file.
'sendgrid' => [
'api_key' => env('SENDGRID_API_KEY'),
]
- Add the value of
SENDGRID_API_KEY
key in the.env
file.
In order to use the plugin you need to get the API key from your SendGrid account.
- In the OctoberCMS back-end go to the System / Settings page and click the
Mail Configuration
link. - In the
Mail Settings
form,- Select the
SendGrid
option in theMail method
dropdown. - Enter the
SendGrid
API key in theSendGrid API Key
text box. - Then submit this form.
- Select the
That's it! Happy mailing!!!