Extension:SendGrid/sv
SendGrid Utgivningsstatus: stabil |
|
---|---|
Genomförande | Underrätta |
Beskrivning | Tillåter MediaWiki att använda SendGrid API:n för e-post distribuering. |
Författare | Derick Alangi (X-Savitartalk) |
Senaste versionen | 4.0 |
Kompatibilitetsregler | Snapshots releases along with MediaWiki. Master is not backward compatible. |
MediaWiki | 1.39+ |
PHP | 7.4+ |
Composer | sendgrid/sendgrid |
Licenser | Ingen angiven licens |
Ladda ner | README |
Quarterly downloads | Lua error in Module:Extension at line 172: bad argument #1 to 'inNamespace' (unrecognized namespace name 'skin'). |
Public wikis using | Lua error in Module:Extension at line 172: bad argument #1 to 'inNamespace' (unrecognized namespace name 'skin'). |
Översätt tillägget SendGrid om det finns tillgängligt på translatewiki.net | |
Ärenden | Öppna ärenden · Rapportera en bugg |
The SendGrid extension enables MediaWiki to send emails through SendGrid's API service.
Installation
- <translate> [[<tvar name=2>Special:ExtensionDistributor/SendGrid/sv</tvar>|Download]] and move the extracted <tvar name=name>
SendGrid/sv
</tvar> folder to your <tvar name=ext>extensions/
</tvar> directory.</translate>
<translate> Developers and code contributors should install the extension [[<tvar name=git>Special:MyLanguage/Download from Git</tvar>|from Git]] instead, using:</translate>cd extensions/
git clone https://gerrit.wikimedia.org/r/mediawiki/extensions/SendGrid%2Fsv - <translate> Add the following code at the bottom of your <tvar name=1>LocalSettings.php </tvar> file:</translate>
wfLoadExtension( 'SendGrid/sv' );
- File:OOjs UI icon check-constructive.svg <translate> Done</translate> – <translate> Navigate to <tvar name=special>Special:Version</tvar> on your wiki to verify that the extension is successfully installed.</translate>
composer update
in extensions/SendGrid/
folder so that composer can pick up and install the required SendGrid dependencies for the extension to run smoothly.Configuration
You need to have an account on www.sendgrid.com
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:
vagrant roles enable sendgrid
.
In your SendGrid account settings, generate an API key. With a valid API Key, configure your API key in LocalSettings.php :
$wgSendGridAPIKey = "YOUR_API_KEY_HERE";
If you're using this extension with SMTP, make sure to configure your SMTP like below:
$wgSMTP = [
'host'=> "smtp.yoursmtp.org",
'IDHost' => "yourhost.org",
'port' => 587,
'auth' => true,
'username' => "yourSMTPusername",
'password' => "yourSMTPpassword"
];
Test your settings
Go to Special:EmailUser
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; Your Name example@domain.com via sendgrid.net
).
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
- Pages with script errors
- Pages with broken file links
- Stable extensions/sv
- Notification extensions/sv
- Extensions with manual MediaWiki version
- Extensions supporting Composer/sv
- Extensions with no license specified/sv
- Extensions in Wikimedia version control/sv
- All extensions/sv
- Extensions not in ExtensionJson