Skip to content

seniorjean/nextjs-maildev-simple-email-api

Repository files navigation

RUN WITH DOCKER

docker compose up --build

RUN WITHOUT DOCKER

npm install
npm run dev


mail templqte

http://localhost:3000/mailtemplate


mail dev backend

http://localhost:1080


mail dev smtp

●host: maildev

● username:

● password:

● port: 1025

Example with node mailer

    const transporter = nodemailer.createTransport({
    host: 'maildev',
    port: 1025,
    ignoreTLS: true,
    });
    
    const mailOptions = {
        from: 'from@email.com',
        to: email,
        subject: 'New Contact',
        html: emailHtml,
    };

Test the api

Run In Postman

About

A simple next js maildev email api

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published