Created
May 14, 2020 08:54
-
-
Save urcoilbisurco/1c07f0ff6e377417406861cd8cbab6d3 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { SmtpClient } from "https://deno.land/x/smtp/mod.ts"; | |
const client = new SmtpClient(); | |
await client.connect({ | |
host: "smtp.163.com", | |
port: 25, | |
username: "username", | |
password: "password", | |
}); | |
await client.send({ | |
from: "[email protected]", | |
to: "[email protected]", | |
subject: "Mail Title", | |
content: "Mail Content,maybe HTML", | |
}); | |
await client.close(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment