Testing Email Sending in Craft Nitro

In addition to the core functionality of local hosting, Craft Nitro also has ancillary services that fill out the total experience of running a Craft site.

In addi­tion to the core func­tion­al­i­ty of local host­ing, Craft Nitro also has ancil­lary ser­vices that fill out the total expe­ri­ence of run­ning a Craft site.

When we are are devel­op­ing projects with Craft, we don’t want to use nor­mal email servers. It cross­es the streams of test­ing and pro­duc­tion, and there’s the chance that we’ll acci­den­tal­ly send some­one, like a cus­tomer, an email.

To pre­vent that there are email test­ing ser­vices out there that will run an email serv­er in a black box, nev­er let­ting the emails get rout­ed to a des­ti­na­tion serv­er and email box. Some are host­ed and some you run yourself.

Craft Nitro comes with sup­port for a local­ly run tool called Mail­hog as part of its suite of Ser­vices. Nitro will run a Dock­er con­tain­er ded­i­cat­ed to Mailhog.

Instructor
Ryan Irelan
Level
Beginner
Date Published
April 20, 2021