test: email sending e2e (#4130)

This commit is contained in:
Alex Yang
2023-09-02 13:13:59 -05:00
committed by GitHub
parent 3d8a91aab0
commit a2623e1352
9 changed files with 159 additions and 0 deletions

View File

@@ -0,0 +1,18 @@
import { createTransport } from 'nodemailer';
const transport = createTransport({
host: '0.0.0.0',
port: 1025,
secure: false,
auth: {
user: 'himself65',
pass: '123456',
},
});
await transport.sendMail({
from: 'noreply@toeverything.info',
to: 'himself65@outlook.com',
subject: 'test',
html: `<div>hello world</div>`,
});