Extension:SendGrid/es

From MediaWiki.org
Jump to navigation Jump to search
This page is a translated version of the page Extension:SendGrid and the translation is 7% complete.

Other languages:
English • ‎dansk • ‎español • ‎français • ‎svenska • ‎中文 • ‎日本語
MediaWiki extensions manual
Crystal Clear action run.svg
SendGrid
Release status: estable
Implementación Notify
Descripción Enables MediaWiki to use the SendGrid API for email distribution.
Autor(es) Derick N. Alangi (X-Savitartalk)
Última versión 2.1 (2018-10-20)
Política de compatibilidad master
MediaWiki 1.31+
PHP 7.0+
Cambios de la base de datos No
Composer sendgrid/sendgrid
Licencia GNU General Public License 2.0 or later
Descarga
README
Hooks que usa
AlternateUserMailer
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' );
    
  • Yes Listo – 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 Advertencia: Security Warning: Do not paste your SendGrid keys directly in your SendGrid/extension.json as this will be a vulnerability making someone else to be able to use your account 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 ).