|
|
|
@ -7,76 +7,76 @@
|
|
|
|
|
|
|
|
|
|
## Introducción
|
|
|
|
|
|
|
|
|
|
Algunos flujos de trabajo de correo electrónico, como actualizar el correo electrónico de un usuario, requiere del servidor API en back-end para enviar correos salientes. MailHog is an alternative to using an email service provider to send actual email messages. It is a developer tool for email testing that will catch the email messages sent by your freeCodeCamp instance.
|
|
|
|
|
Algunos flujos de trabajo de correo electrónico, como actualizar el correo electrónico de un usuario, requiere del servidor API en back-end para enviar correos salientes. MailHog es una alternativa al uso de un proveedor de servicios de correo electrónico para enviar correos electrónicos reales. Es una herramienta de desarrollo para pruebas de correo electrónico que capturará los mensajes de correo electrónico enviados por tu instancia de freeCodeCamp.
|
|
|
|
|
|
|
|
|
|
## Instalando MailHog
|
|
|
|
|
|
|
|
|
|
MailHog can be installed on macOS, Windows and Linux or used via Docker
|
|
|
|
|
MailHog puede ser instalado en macOS, Windows y Linux o usado via Docker
|
|
|
|
|
|
|
|
|
|
<details><summary>Installing MailHog with Docker</summary>
|
|
|
|
|
<details><summary>Instalando MailHog con Docker</summary>
|
|
|
|
|
|
|
|
|
|
If you have Docker installed then you can use
|
|
|
|
|
Si ya tienes Docker instalado puedes usar
|
|
|
|
|
|
|
|
|
|
```bash
|
|
|
|
|
docker run -d --name mailhog --network host --rm mailhog/mailhog
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
to start MailHog in the background and
|
|
|
|
|
Para iniciar MailHog en segundo plano y
|
|
|
|
|
|
|
|
|
|
```bash
|
|
|
|
|
docker stop mailhog
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
to stop it.
|
|
|
|
|
Para frenarlo.
|
|
|
|
|
|
|
|
|
|
When the installation completes, you can start [using MailHog](#using-mailhog). </details>
|
|
|
|
|
Cuando la instalación finalice, puedes comenzar a [usar MailHog](#using-mailhog). </details>
|
|
|
|
|
|
|
|
|
|
<details><summary>Installing MailHog on macOS</summary>
|
|
|
|
|
<details><summary>Instalando MailHog en macOS</summary>
|
|
|
|
|
|
|
|
|
|
Install MailHog on macOS with [Homebrew](https://brew.sh/):
|
|
|
|
|
Instala Mailhog en MacOS con [Homebrew](https://brew.sh/):
|
|
|
|
|
|
|
|
|
|
```bash
|
|
|
|
|
brew install mailhog
|
|
|
|
|
brew services start mailhog
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
The above commands will start a mailhog service in the background.
|
|
|
|
|
los comandos anteriores iniciarán un servicio de mailhog en segundo plano.
|
|
|
|
|
|
|
|
|
|
When the installation completes, you can start [using MailHog](#using-mailhog). </details>
|
|
|
|
|
cuando termine la instalación, puedes comenzar a [usar Mailhog](#using-mailhog). </details>
|
|
|
|
|
|
|
|
|
|
<details><summary>Installing MailHog on Windows</summary>
|
|
|
|
|
<details><summary>Instalando MailHog en Windows</summary>
|
|
|
|
|
|
|
|
|
|
Download the latest version of MailHog from [MailHog's official repository](https://github.com/mailhog/MailHog/releases). Locate and click on the link for your Windows version (32 or 64 bit) and a .exe file will be downloaded to your computer.
|
|
|
|
|
Descarga la última versión de MailHog desde [el repositorio oficial de MailHog](https://github.com/mailhog/MailHog/releases). Ubica y presiona el enlace para tu versión de Windows (32 o 64 bits) y se descargará un archivo .exe a tu computadora.
|
|
|
|
|
|
|
|
|
|
When the download completes, click to open the file. A Windows firewall notification may appear, requesting access permission for MailHog. A standard Windows command line prompt will open where MailHog will be running once firewall access is granted.
|
|
|
|
|
Cuando haya finalizado la descarga, haz clic para abrir el archivo. Una notificación del cortafuegos de Windows podría aparecer, solicitando permiso de acceso para MailHog. Se abrirá una consola de Windows donde MailHog se ejecutará una vez que se le conceda acceso del cortafuegos.
|
|
|
|
|
|
|
|
|
|
Close MailHog by closing the command prompt window. To start MailHog again, click on the MailHog executable (.exe) file that was downloaded initially - it is not necessary to download a new MailHog installation file.
|
|
|
|
|
Detén MailHog cerrando la ventana de la consola. Para iniciar MailHog de nuevo, haz clic en el archivo ejecutable de MailHog (.exe) que se descargó inicialmente, no es necesario descargar un nuevo archivo de instalación de MailHog.
|
|
|
|
|
|
|
|
|
|
Start [using MailHog](#using-mailhog). </details>
|
|
|
|
|
Comienza a [usar MailHog](#using-mailhog). </details>
|
|
|
|
|
|
|
|
|
|
<details><summary>Installing MailHog on Linux</summary>
|
|
|
|
|
<details><summary>Instalando MailHog en Linux</summary>
|
|
|
|
|
|
|
|
|
|
First, install [Go](https://golang.org).
|
|
|
|
|
Primero, instala [Go](https://golang.org).
|
|
|
|
|
|
|
|
|
|
Run the following commands to install GO on Debian-based systems like Ubuntu and Linux Mint.
|
|
|
|
|
Ejecuta los siguientes comandos para instalar GO en sistemas basados en Debian como Ubuntu y Linux Mint.
|
|
|
|
|
|
|
|
|
|
```bash
|
|
|
|
|
sudo apt-get install golang
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
Run the following commands to install GO on RPM-based systems like CentOS, Fedora, Red Hat Linux, etc.
|
|
|
|
|
Ejecuta los siguientes comandos para instalar GO en sistemas basados en RPM como CentOS, Fedora, Red Hat Linux, etc.
|
|
|
|
|
|
|
|
|
|
```bash
|
|
|
|
|
sudo dnf install golang
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
Alternatively, run the following commands to install GO.
|
|
|
|
|
Alternativamente, ejecuta los siguientes comandos para instalar GO.
|
|
|
|
|
|
|
|
|
|
```bash
|
|
|
|
|
sudo yum install golang
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
Now set the path for Go with the following commands.
|
|
|
|
|
Ahora establece la ruta para Go con los siguientes comandos.
|
|
|
|
|
|
|
|
|
|
```bash
|
|
|
|
|
echo "export GOPATH=$HOME/go" >> ~/.profile
|
|
|
|
@ -84,7 +84,7 @@ echo 'export PATH=$PATH:/usr/local/go/bin:$GOPATH/bin' >> ~/.profile
|
|
|
|
|
source ~/.profile
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
Finally, enter the commands below to install and run MailHog.
|
|
|
|
|
Finalmente, introduce los siguientes comandos para instalar y ejecutar MailHog.
|
|
|
|
|
|
|
|
|
|
```bash
|
|
|
|
|
go get github.com/mailhog/MailHog
|
|
|
|
@ -92,23 +92,23 @@ sudo cp /home/$(whoami)/go/bin/MailHog /usr/local/bin/mailhog
|
|
|
|
|
mailhog
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
Start [using MailHog](#using-mailhog). </details>
|
|
|
|
|
Comienza a [usar MailHog](#using-mailhog). </details>
|
|
|
|
|
|
|
|
|
|
## Usando MailHog
|
|
|
|
|
|
|
|
|
|
Open a new browser tab or window and navigate to [http://localhost:8025](http://localhost:8025) to open your MailHog inbox when the MailHog installation has completed and MailHog is running. The inbox will appear similar to the screenshot below.
|
|
|
|
|
Abre una nueva pestaña o ventana del navegador y navega a [http://localhost:8025](http://localhost:8025) para abrir tu bandeja de entrada de MailHog cuando se haya completado la instalación de MailHog y se encuentre en ejecución. La bandeja de entrada será similar a la captura de pantalla siguiente.
|
|
|
|
|
|
|
|
|
|

|
|
|
|
|

|
|
|
|
|
|
|
|
|
|
Emails sent by your freeCodeCamp installation will appear as below
|
|
|
|
|
Los correos enviados por tu instalación de freeCodeCamp aparecerán de la siguiente manera
|
|
|
|
|
|
|
|
|
|

|
|
|
|
|

|
|
|
|
|
|
|
|
|
|
Two tabs that allow you to view either plain text or source content will be available when you open a given email. Ensure that the plain text tab is selected as below.
|
|
|
|
|
Dos pestañas que te permiten ver texto plano o contenido fuente estarán disponibles cuando abras un correo electrónico dado. Asegúrate de que la pestaña de texto plano está seleccionada como se muestra a continuación.
|
|
|
|
|
|
|
|
|
|

|
|
|
|
|

|
|
|
|
|
|
|
|
|
|
All links in the email should be clickable and resolve to their URL.
|
|
|
|
|
Todos los enlaces en el correo electrónico deben ser cliqueables y enlazar a su URL.
|
|
|
|
|
|
|
|
|
|
## Enlaces útiles
|
|
|
|
|
|
|
|
|
|