{"id":1833,"date":"2022-06-23T12:14:59","date_gmt":"2022-06-23T12:14:59","guid":{"rendered":"https:\/\/www.lucushost.com\/ayuda\/?p=1833"},"modified":"2022-06-23T12:20:32","modified_gmt":"2022-06-23T12:20:32","slug":"configurar-smtp-drupal","status":"publish","type":"post","link":"https:\/\/www.lucushost.com\/ayuda\/configurar-smtp-drupal\/","title":{"rendered":"C\u00f3mo configurar el servidor SMTP en Drupal"},"content":{"rendered":"<p>De forma predeterminada, Drupal permite el env\u00edo de correos a trav\u00e9s de la funci\u00f3n mail() de PHP. Eso s\u00ed, si deseas mejorar la seguridad en el env\u00edo de correos, puedes configurar un servidor SMTP en Drupal.<\/p>\n<p><!--more--><\/p>\n<p>Esto es posible hacerlo mediante un m\u00f3dulo que est\u00e1 disponible en el repositorio oficial de esta aplicaci\u00f3n que permite la autenticaci\u00f3n SMTP y que puedes configurarlo en solo unos clics.<\/p>\n<p>\u00bfVemos c\u00f3mo hacerlo?<\/p>\n<h2>1. Descarga e instala el m\u00f3dulo de autenticaci\u00f3n SMTP para Drupal<\/h2>\n<p>Lo primero es descargar en tu equipo el m\u00f3dulo SMTP. Esto puedes hacerlo directamente en la <strong><a href=\"https:\/\/www.drupal.org\/project\/smtp\/releases\/8.x-1.0\" rel=\"nofollow noopener\" target=\"_blank\">p\u00e1gina web oficial de Drupal<\/a><\/strong>.<\/p>\n<p><img loading=\"lazy\" class=\"alignnone wp-image-1836 size-full\" src=\"https:\/\/www.lucushost.com\/ayuda\/wp-content\/uploads\/2022\/06\/modulo-smpt-drupal.png\" alt=\"Descargar el m\u00f3dulo SMTP para Drupal\" width=\"1404\" height=\"503\" srcset=\"https:\/\/www.lucushost.com\/ayuda\/wp-content\/uploads\/2022\/06\/modulo-smpt-drupal.png 1404w, https:\/\/www.lucushost.com\/ayuda\/wp-content\/uploads\/2022\/06\/modulo-smpt-drupal-300x107.png 300w, https:\/\/www.lucushost.com\/ayuda\/wp-content\/uploads\/2022\/06\/modulo-smpt-drupal-1024x367.png 1024w, https:\/\/www.lucushost.com\/ayuda\/wp-content\/uploads\/2022\/06\/modulo-smpt-drupal-768x275.png 768w\" sizes=\"(max-width: 1404px) 100vw, 1404px\" title=\"\"><\/p>\n<p>Una vez que hayas descargado el m\u00f3dulo, accede al panel de administraci\u00f3n de Drupal. Pulsa en \u00abManage\u00bb &#8211; \u00abExtend\u00bb &#8211; \u00abAdd new module\u00bb, tal y como ves en la imagen:<\/p>\n<p><img loading=\"lazy\" class=\"alignnone wp-image-1837 size-full\" src=\"https:\/\/www.lucushost.com\/ayuda\/wp-content\/uploads\/2022\/06\/drupal-extension-add.png\" alt=\"A\u00f1adir un m\u00f3dulo en Drupal\" width=\"963\" height=\"415\" srcset=\"https:\/\/www.lucushost.com\/ayuda\/wp-content\/uploads\/2022\/06\/drupal-extension-add.png 963w, https:\/\/www.lucushost.com\/ayuda\/wp-content\/uploads\/2022\/06\/drupal-extension-add-300x129.png 300w, https:\/\/www.lucushost.com\/ayuda\/wp-content\/uploads\/2022\/06\/drupal-extension-add-768x331.png 768w\" sizes=\"(max-width: 963px) 100vw, 963px\" title=\"\"><\/p>\n<p>Ahora se abrir\u00e1 una nueva ventana como esta. Desde aqu\u00ed podr\u00e1s cargar el m\u00f3dulo que descargamos anteriormente, aunque tambi\u00e9n es posible a\u00f1adirlo mediante una url.<\/p>\n<p><img loading=\"lazy\" class=\"alignnone size-full wp-image-1838\" src=\"https:\/\/www.lucushost.com\/ayuda\/wp-content\/uploads\/2022\/06\/drupal-cargar-modulo.png\" alt=\"Cargar un m\u00f3dulo en Drupal\" width=\"962\" height=\"453\" srcset=\"https:\/\/www.lucushost.com\/ayuda\/wp-content\/uploads\/2022\/06\/drupal-cargar-modulo.png 962w, https:\/\/www.lucushost.com\/ayuda\/wp-content\/uploads\/2022\/06\/drupal-cargar-modulo-300x141.png 300w, https:\/\/www.lucushost.com\/ayuda\/wp-content\/uploads\/2022\/06\/drupal-cargar-modulo-768x362.png 768w\" sizes=\"(max-width: 962px) 100vw, 962px\" title=\"\"><\/p>\n<p>Para seguir con la instalaci\u00f3n, pulsa en \u00abContinue\u00bb y se abrir\u00e1 una nueva ventana en la que te indica si la subida se ha realizado correctamente.<\/p>\n<p><img loading=\"lazy\" class=\"alignnone size-full wp-image-1839\" src=\"https:\/\/www.lucushost.com\/ayuda\/wp-content\/uploads\/2022\/06\/drupal-modulo-subido.png\" alt=\"M\u00f3dulo subido a Drupal\" width=\"723\" height=\"404\" srcset=\"https:\/\/www.lucushost.com\/ayuda\/wp-content\/uploads\/2022\/06\/drupal-modulo-subido.png 723w, https:\/\/www.lucushost.com\/ayuda\/wp-content\/uploads\/2022\/06\/drupal-modulo-subido-300x168.png 300w\" sizes=\"(max-width: 723px) 100vw, 723px\" title=\"\"><\/p>\n<p>El m\u00f3dulo est\u00e1 subido, ahora falta instalarlo. Para ello, vuelve a la secci\u00f3n \u00abExtend\u00bb, busca el m\u00f3dulo y pulsa en \u00abInstall\u00bb.<\/p>\n<p><img loading=\"lazy\" class=\"alignnone size-full wp-image-1841\" src=\"https:\/\/www.lucushost.com\/ayuda\/wp-content\/uploads\/2022\/06\/drupal-instalar-modulo.png\" alt=\"Instalar un m\u00f3dulo en Drupal\" width=\"961\" height=\"615\" srcset=\"https:\/\/www.lucushost.com\/ayuda\/wp-content\/uploads\/2022\/06\/drupal-instalar-modulo.png 961w, https:\/\/www.lucushost.com\/ayuda\/wp-content\/uploads\/2022\/06\/drupal-instalar-modulo-300x192.png 300w, https:\/\/www.lucushost.com\/ayuda\/wp-content\/uploads\/2022\/06\/drupal-instalar-modulo-768x491.png 768w\" sizes=\"(max-width: 961px) 100vw, 961px\" title=\"\"><\/p>\n<p><img loading=\"lazy\" class=\"alignnone size-full wp-image-1840\" src=\"https:\/\/www.lucushost.com\/ayuda\/wp-content\/uploads\/2022\/06\/drupal-modulo-instalado.png\" alt=\"M\u00f3dulo instalado en Drupal\" width=\"963\" height=\"178\" srcset=\"https:\/\/www.lucushost.com\/ayuda\/wp-content\/uploads\/2022\/06\/drupal-modulo-instalado.png 963w, https:\/\/www.lucushost.com\/ayuda\/wp-content\/uploads\/2022\/06\/drupal-modulo-instalado-300x55.png 300w, https:\/\/www.lucushost.com\/ayuda\/wp-content\/uploads\/2022\/06\/drupal-modulo-instalado-768x142.png 768w\" sizes=\"(max-width: 963px) 100vw, 963px\" title=\"\"><\/p>\n<h3>2. Configura el m\u00f3dulo SMTP para Drupal<\/h3>\n<p>Una vez que tienes el m\u00f3dulo instalado en tu aplicaci\u00f3n, toca configurarlo.<\/p>\n<p><img loading=\"lazy\" class=\"alignnone size-full wp-image-1842\" src=\"https:\/\/www.lucushost.com\/ayuda\/wp-content\/uploads\/2022\/06\/drupal-smtp-configurar.png\" alt=\"Configurar el m\u00f3dulo SMTP para Drupal\" width=\"962\" height=\"264\" srcset=\"https:\/\/www.lucushost.com\/ayuda\/wp-content\/uploads\/2022\/06\/drupal-smtp-configurar.png 962w, https:\/\/www.lucushost.com\/ayuda\/wp-content\/uploads\/2022\/06\/drupal-smtp-configurar-300x82.png 300w, https:\/\/www.lucushost.com\/ayuda\/wp-content\/uploads\/2022\/06\/drupal-smtp-configurar-768x211.png 768w\" sizes=\"(max-width: 962px) 100vw, 962px\" title=\"\"><\/p>\n<p>Es muy posible que no puedas continuar y configurar el m\u00f3dulo porque no tienes la librer\u00eda PHPMailer instalada. De hecho, ver\u00e1s algo como:<\/p>\n<p><img loading=\"lazy\" class=\"alignnone size-full wp-image-1844\" src=\"https:\/\/www.lucushost.com\/ayuda\/wp-content\/uploads\/2022\/06\/drupal-smtp-inactivo.png\" alt=\"M\u00f3dulo SMTP para Drupal desactivado\" width=\"962\" height=\"456\" srcset=\"https:\/\/www.lucushost.com\/ayuda\/wp-content\/uploads\/2022\/06\/drupal-smtp-inactivo.png 962w, https:\/\/www.lucushost.com\/ayuda\/wp-content\/uploads\/2022\/06\/drupal-smtp-inactivo-300x142.png 300w, https:\/\/www.lucushost.com\/ayuda\/wp-content\/uploads\/2022\/06\/drupal-smtp-inactivo-768x364.png 768w\" sizes=\"(max-width: 962px) 100vw, 962px\" title=\"\"><\/p>\n<p>Para instalar esta librer\u00eda, lo m\u00e1s sencillo es conectarte a tu hosting mediante una <strong><a href=\"https:\/\/www.lucushost.com\/blog\/conexion-ssh\/\">conexi\u00f3n SSH<\/a><\/strong>.<\/p>\n<p>Hecho esto, ve al directorio en el que tienes instalada la aplicaci\u00f3n de Drupal. En este ejemplo es:<\/p>\n<ul>\n<li><em>public_html\/tudominio.com<\/em><\/li>\n<\/ul>\n<p>Por tanto, para acceder a este directorio, ejecutamos:<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">cd public_html\/tudominio.com\/<\/pre>\n<p>Una vez que accedas al directorio, tienes que ejecutar este comando que permite descargar e instalar la librer\u00eda PHPMailer a trav\u00e9s de Composer:<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">composer require phpmailer\/phpmailer<\/pre>\n<p><img loading=\"lazy\" class=\"alignnone size-full wp-image-1845\" src=\"https:\/\/www.lucushost.com\/ayuda\/wp-content\/uploads\/2022\/06\/drupal-php-mailer.png\" alt=\"Descargar e instalar PHPMailer por SSH en tu hosting\" width=\"960\" height=\"491\" srcset=\"https:\/\/www.lucushost.com\/ayuda\/wp-content\/uploads\/2022\/06\/drupal-php-mailer.png 960w, https:\/\/www.lucushost.com\/ayuda\/wp-content\/uploads\/2022\/06\/drupal-php-mailer-300x153.png 300w, https:\/\/www.lucushost.com\/ayuda\/wp-content\/uploads\/2022\/06\/drupal-php-mailer-768x393.png 768w\" sizes=\"(max-width: 960px) 100vw, 960px\" title=\"\"><\/p>\n<p>Ahora s\u00ed podr\u00e1s configurar el m\u00f3dulo y habilitar SMTP en Drupal.<\/p>\n<p><img loading=\"lazy\" class=\"alignnone size-full wp-image-1846\" src=\"https:\/\/www.lucushost.com\/ayuda\/wp-content\/uploads\/2022\/06\/drupal-smtp-on.png\" alt=\"Activar SMTP en Drupal\" width=\"962\" height=\"213\" srcset=\"https:\/\/www.lucushost.com\/ayuda\/wp-content\/uploads\/2022\/06\/drupal-smtp-on.png 962w, https:\/\/www.lucushost.com\/ayuda\/wp-content\/uploads\/2022\/06\/drupal-smtp-on-300x66.png 300w, https:\/\/www.lucushost.com\/ayuda\/wp-content\/uploads\/2022\/06\/drupal-smtp-on-768x170.png 768w\" sizes=\"(max-width: 962px) 100vw, 962px\" title=\"\"><\/p>\n<p>Para ello, deber\u00e1s introducir los datos SMTP de tu servidor que son:<\/p>\n<ul>\n<li><strong>Servidor SMTP<\/strong>: mail.tudominio.com<\/li>\n<li><strong>Puerto SMTP<\/strong>: 465<\/li>\n<li><strong>Tipo de cifrado<\/strong>: SSL<\/li>\n<\/ul>\n<p><img loading=\"lazy\" class=\"alignnone size-full wp-image-1847\" src=\"https:\/\/www.lucushost.com\/ayuda\/wp-content\/uploads\/2022\/06\/drupal-configura-smtp.png\" alt=\"Establecer los datos de configuraci\u00f3n del servidor SMTP\" width=\"962\" height=\"914\" srcset=\"https:\/\/www.lucushost.com\/ayuda\/wp-content\/uploads\/2022\/06\/drupal-configura-smtp.png 962w, https:\/\/www.lucushost.com\/ayuda\/wp-content\/uploads\/2022\/06\/drupal-configura-smtp-300x285.png 300w, https:\/\/www.lucushost.com\/ayuda\/wp-content\/uploads\/2022\/06\/drupal-configura-smtp-768x730.png 768w\" sizes=\"(max-width: 962px) 100vw, 962px\" title=\"\"><\/p>\n<h2>3. Comprueba que funciona el env\u00edo de emails por SMTP<\/h2>\n<p>Si ya tienes el m\u00f3dulo SMTP para Drupal configurado, podr\u00e1s realizar un env\u00edo de prueba para cerciorarte de que todo funciona correctamente.<\/p>\n<p>Para ello, ve a la secci\u00f3n \u00abSend test e-mail\u00bb, introduce la cuenta de correo a la que quieres enviar una prueba y guarda los cambios.<\/p>\n<p><img loading=\"lazy\" class=\"alignnone size-full wp-image-1848\" src=\"https:\/\/www.lucushost.com\/ayuda\/wp-content\/uploads\/2022\/06\/drupal-smtp-activo.png\" alt=\"\" width=\"961\" height=\"308\" srcset=\"https:\/\/www.lucushost.com\/ayuda\/wp-content\/uploads\/2022\/06\/drupal-smtp-activo.png 961w, https:\/\/www.lucushost.com\/ayuda\/wp-content\/uploads\/2022\/06\/drupal-smtp-activo-300x96.png 300w, https:\/\/www.lucushost.com\/ayuda\/wp-content\/uploads\/2022\/06\/drupal-smtp-activo-768x246.png 768w\" sizes=\"(max-width: 961px) 100vw, 961px\" title=\"\"> <img loading=\"lazy\" class=\"alignnone size-full wp-image-1849\" src=\"https:\/\/www.lucushost.com\/ayuda\/wp-content\/uploads\/2022\/06\/drupal-smtp-prueba-guardar.png\" alt=\"Enviar un email de prueba para comprobar que funciona el env\u00edo por SMTP en Drupal\" width=\"962\" height=\"265\" srcset=\"https:\/\/www.lucushost.com\/ayuda\/wp-content\/uploads\/2022\/06\/drupal-smtp-prueba-guardar.png 962w, https:\/\/www.lucushost.com\/ayuda\/wp-content\/uploads\/2022\/06\/drupal-smtp-prueba-guardar-300x83.png 300w, https:\/\/www.lucushost.com\/ayuda\/wp-content\/uploads\/2022\/06\/drupal-smtp-prueba-guardar-768x212.png 768w\" sizes=\"(max-width: 962px) 100vw, 962px\" title=\"\"><\/p>\n<p>Si la configuraci\u00f3n es correcta, mostrar\u00e1 un mensaje como este:<\/p>\n<p><img loading=\"lazy\" class=\"alignnone size-full wp-image-1848\" src=\"https:\/\/www.lucushost.com\/ayuda\/wp-content\/uploads\/2022\/06\/drupal-smtp-activo.png\" alt=\"Env\u00edo por SMTP en Drupal realizado correctamente\" width=\"961\" height=\"308\" srcset=\"https:\/\/www.lucushost.com\/ayuda\/wp-content\/uploads\/2022\/06\/drupal-smtp-activo.png 961w, https:\/\/www.lucushost.com\/ayuda\/wp-content\/uploads\/2022\/06\/drupal-smtp-activo-300x96.png 300w, https:\/\/www.lucushost.com\/ayuda\/wp-content\/uploads\/2022\/06\/drupal-smtp-activo-768x246.png 768w\" sizes=\"(max-width: 961px) 100vw, 961px\" title=\"\"><\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>De forma predeterminada, Drupal permite el env\u00edo de correos a trav\u00e9s de la funci\u00f3n mail() de PHP. Eso s\u00ed, si deseas mejorar la seguridad en el env\u00edo de correos, puedes configurar un servidor SMTP en Drupal.<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[7,9],"tags":[],"acf":[],"_links":{"self":[{"href":"https:\/\/www.lucushost.com\/ayuda\/wp-json\/wp\/v2\/posts\/1833"}],"collection":[{"href":"https:\/\/www.lucushost.com\/ayuda\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.lucushost.com\/ayuda\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.lucushost.com\/ayuda\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.lucushost.com\/ayuda\/wp-json\/wp\/v2\/comments?post=1833"}],"version-history":[{"count":6,"href":"https:\/\/www.lucushost.com\/ayuda\/wp-json\/wp\/v2\/posts\/1833\/revisions"}],"predecessor-version":[{"id":1852,"href":"https:\/\/www.lucushost.com\/ayuda\/wp-json\/wp\/v2\/posts\/1833\/revisions\/1852"}],"wp:attachment":[{"href":"https:\/\/www.lucushost.com\/ayuda\/wp-json\/wp\/v2\/media?parent=1833"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.lucushost.com\/ayuda\/wp-json\/wp\/v2\/categories?post=1833"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.lucushost.com\/ayuda\/wp-json\/wp\/v2\/tags?post=1833"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}