mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-12 04:18:54 +00:00
test: email sending e2e (#4130)
This commit is contained in:
18
apps/server/scripts/test-send-local-mail.ts
Normal file
18
apps/server/scripts/test-send-local-mail.ts
Normal 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>`,
|
||||
});
|
||||
Reference in New Issue
Block a user