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.phpfile.
'sendgrid' => [
'api_key' => env('SENDGRID_API_KEY'),
]- Add the value of
SENDGRID_API_KEYkey in the.envfile.
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 Configurationlink. - In the
Mail Settingsform,- Select the
SendGridoption in theMail methoddropdown. - Enter the
SendGridAPI key in theSendGrid API Keytext box. - Then submit this form.
- Select the
That's it! Happy mailing!!!