Open main menu

Extension:SendGrid/es

This page is a translated version of the page Extension:SendGrid and the translation is 7% complete.

Other languages:
English • ‎español • ‎français • ‎svenska • ‎中文 • ‎日本語
MediaWiki extensions manual
OOjs UI icon advanced.svg
SendGrid
Release status: estable
Implementación Notify
Descripción Enables MediaWiki to use the SendGrid API for email distribution.
Autor(es) Derick Alangi (X-Savitartalk)
Última versión 2.2 (2019-04-28)
Política de compatibilidad Maestro
MediaWiki 1.33+
PHP 5.6+
Cambios de la base de datos No
Composer sendgrid/sendgrid
Licencia GNU General Public License 2.0 or later
Descarga
README
Translate the SendGrid extension if it is available at translatewiki.net
Verificar uso y versión de la matriz.
Asuntos Tareas abiertas · Reportar un bug

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

Installation

  • Descarga y extrae los archivos en el directorio «SendGrid» dentro del directorio extensions/ existente.
  • Añade el siguiente código a tu LocalSettings.php (preferiblemente al final):
    wfLoadExtension( 'SendGrid' );
    
  •   Hecho – Navega a Special:Version en tu wiki para verificar que la apariencia se haya instalado correctamente.

Para quienes usan MediaWiki 1.24 o versiones anteriores:

Estas instrucciones describen la nueva forma de instalar extensiones usando wfLoadExtension(). Si necesitas instalar esta extensión en versiones anteriores (MediaWiki 1.24 y anteriores), debes usar lo siguiente en lugar de wfLoadExtension( 'SendGrid' );:

require_once "$IP/extensions/SendGrid/SendGrid.php";
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.

Configuración

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.

  Advertencia: 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";


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 ).