Welde Tekle

Welde Tekle

1602883440

SMTP implements for Deno

Deno SMTP mail client

Example

import { SmtpClient } from "https://deno.land/x/smtp/mod.ts";

const client = new SmtpClient();

await client.connect({
  hostname: "smtp.163.com",
  port: 25,
  username: "username",
  password: "password",
});

await client.send({
  from: "mailaddress@163.com",
  to: "to-address@xx.com",
  subject: "Mail Title",
  content: "Mail Content,maybe HTML",
});

await client.close();
TLS connection
await client.connectTLS({
  hostname: "smtp.163.com",
  port: 465,
  username: "username",
  password: "password",
});
Use in Gmail
await client.connectTLS({
  hostname: "smtp.gmail.com",
  port: 465,
  username: "your username",
  password: "your password",
});

await client.send({
  from: "someone@163.com", // Your Email address
  to: "someone@xx.com", // Email address of the destination
  subject: "Mail Title",
  content: "Mail Content,maybe HTML",
});

await client.close();

Configuring your client

You can pass options to your client through the SmtpClient constructor.

import { SmtpClient } from "https://deno.land/x/smtp/mod.ts";

//Defaults
const client = new SmtpClient({
  content_encoding: "quoted-printable", // 7bit, 8bit, base64, binary, quoted-printable
});

Download Details:

Author: manyuanrong

Source Code: https://github.com/manyuanrong/deno-smtp

#deno #nodejs #node #javascript

What is GEEK

Buddha Community

SMTP implements for Deno
Welde Tekle

Welde Tekle

1602883440

SMTP implements for Deno

Deno SMTP mail client

Example

import { SmtpClient } from "https://deno.land/x/smtp/mod.ts";

const client = new SmtpClient();

await client.connect({
  hostname: "smtp.163.com",
  port: 25,
  username: "username",
  password: "password",
});

await client.send({
  from: "mailaddress@163.com",
  to: "to-address@xx.com",
  subject: "Mail Title",
  content: "Mail Content,maybe HTML",
});

await client.close();
TLS connection
await client.connectTLS({
  hostname: "smtp.163.com",
  port: 465,
  username: "username",
  password: "password",
});
Use in Gmail
await client.connectTLS({
  hostname: "smtp.gmail.com",
  port: 465,
  username: "your username",
  password: "your password",
});

await client.send({
  from: "someone@163.com", // Your Email address
  to: "someone@xx.com", // Email address of the destination
  subject: "Mail Title",
  content: "Mail Content,maybe HTML",
});

await client.close();

Configuring your client

You can pass options to your client through the SmtpClient constructor.

import { SmtpClient } from "https://deno.land/x/smtp/mod.ts";

//Defaults
const client = new SmtpClient({
  content_encoding: "quoted-printable", // 7bit, 8bit, base64, binary, quoted-printable
});

Download Details:

Author: manyuanrong

Source Code: https://github.com/manyuanrong/deno-smtp

#deno #nodejs #node #javascript

Darren  Watsica

Darren Watsica

1597913858

Should You Learn Deno Js ? The Deno Js Intro By DESI PROGRAMMER

Hey youtube, This is Prince and welcome back to another exciting video and in this video we are going to explore a bit of Deno JS !

Comparison : 1:39
Installation : 3:39

#deno #deno js

Khaitan

Khaitan

1590306362

Deno | What is Deno? | Deno tamil

Learn what is Deno in tamil?

Deno is a runtime for JavaScript and TypeScript that is based on the V8 JavaScript engine and the Rust programming language. It was created by Ryan Dahl, original creator of Node.js, and is focused on productivity.

#deno #node #javascript #typescript #rust

Renato Silva

1597895940

How JavaScript Works for Deno js

Deno js Bootcamp 2020, Deno web development, Deno tutorials - with Real Projects

#javascript #deno tutorials #deno

Vicky  Graham

Vicky Graham

1626958800

Learn the Basics of Deno in 7 minutes

Learn the Basics of Deno in 7 minutes

Code Link: https://github.com/akash-joshi/deno-url-shortener

#deno #basics #deno basics