Extension:SendGrid/cs

Category:GPL licensed extensions/cs
Příručka k rozšířením MediaWiki
SendGrid
Stav rozšíření: stabilníCategory:Stable extensions/cs
Implementace OznámeníCategory:Notification extensions/cs
Popis Umožňuje MediaWiki používat API SendGrid pro distribuci e-mailů.
Autoři Derick Alangi (X-Savitardiskuse)
Nejnovější verze 4.0
Zásady kompatibility Vydání snímků současně s MediaWiki. Hlavní vývojová větev není zpětně kompatibilní.
MediaWiki 1.39+Category:Extensions with manual MediaWiki version
PHP 7.4+
Composer sendgrid/sendgrid Category:Extensions supporting Composer/cs
Licence GNU General Public License 2.0 nebo novější
Stáhnout Category:Extensions in Wikimedia version control/cs
README
  • $wgSendGridAPIKey
Čtvrtletní stahování 5 (Ranked 111st)
Přeložte rozšíření SendGrid, používá-li lokalizaci z translatewiki.net
Problémy Otevřené úkoly · Nahlásit chybu
Category:All extensions/cs

Rozšíření SendGrid umožňuje MediaWiki odesílat e-maily prostřednictvím služby API SendGrid.

Instalace

  • Stáhněte soubor/y a vložte je do adresáře pojmenovaného SendGrid ve vaší složce extensions/.
    Vývojáři a přispěvatelé kódu by si místo toho měli nainstalovat rozšíření from Git pomocí:cd extensions/
    git clone https://gerrit.wikimedia.org/r/mediawiki/extensions/SendGrid
  • Na konec vašeho souboru LocalSettings.php přidejte následující kód:
    wfLoadExtension( 'SendGrid' );
    
  • Yes Dokončeno – Přejděte na stránku Special:Version vaší wiki a zkontrolujte, zda bylo rozšíření úspěšně nainstalováno.
You will have to run 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.

Varování Varování: Security Warning: Do not put your SendGrid API key directly in the SendGrid/extension.json as this will be a vulnerability allowing someone else to be able to use your account/key to send emails or perform other bad stuff.

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

Category:All extensions/cs Category:AlternateUserMailer extensions/cs Category:Extensions in Wikimedia version control/cs Category:Extensions supporting Composer/cs Category:Extensions with manual MediaWiki version Category:GPL licensed extensions/cs Category:Notification extensions/cs Category:Stable extensions/cs