mirror of
https://github.com/toeverything/AFFiNE.git
synced 2024-12-23 16:32:04 +03:00
19 lines
348 B
TypeScript
19 lines
348 B
TypeScript
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>`,
|
|
});
|