Extension:SendGrid/en

The SendGrid extension enables MediaWiki to send emails through SendGrid's API service.

Configuration
You need to have an account on  and a valid API key in order to successfully send emails via SendGrid using this extension. Instructions to generate an API key can be found in the SendGrid API key documentation.

Configuration on MediaWiki-Vagrant
Once your MediaWiki-Vagrant environment is setup correctly, do the following to get SendGrid to work properly with your new environment;
 * On your terminal, run:.

In your SendGrid account settings, generate an API key. With a valid API Key, configure your API key in

If you're using this extension with SMTP, make sure to configure your SMTP like below:

Test your settings
Go to  and send an email to your own address to verify that the extension is working. You'll receive an email from the address you inputed and check to see if it's sent via the SendGrid API (for example; ).

Usage by production wikis
This extension is used by wikis listed here: https://wikiapiary.com/wiki/Extension:SendGrid (via WikiApiary)

Errors or exceptions
If your email fails to send and throws an exception, make sure that $wgPasswordSender matches the email sender identifier used in your SendGrid account.

Notice the change here: https://gerrit.wikimedia.org/r/c/mediawiki/extensions/SendGrid/+/833121