Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Name or service not known #16

Open
epomatti opened this issue Jun 2, 2020 · 0 comments
Open

Name or service not known #16

epomatti opened this issue Jun 2, 2020 · 0 comments

Comments

@epomatti
Copy link

epomatti commented Jun 2, 2020

This example was running couple days before and now it gives me an error:

error: Uncaught Error: failed to lookup address information: Name or service not known
    at unwrapResponse ($deno$/ops/dispatch_json.ts:43:11)
    at Object.sendAsync ($deno$/ops/dispatch_json.ts:98:10)
    at async Object.connectTls ($deno$/tls.ts:20:15)
    at async SmtpClient.connectTLS (https://deno.land/x/smtp/smtp.ts:36:18)
    at async file:///home/pomatti/projects/bizi-infrastructure-code/deno-smtp/deno.ts:13:1
import { SmtpClient } from "https://deno.land/x/smtp/mod.ts";
import { ConnectConfigWithAuthentication } from "https://raw.githubusercontent.com/manyuanrong/deno-smtp/master/config.ts";

const client = new SmtpClient();

const params = <ConnectConfigWithAuthentication>{
  hostname: "smtp.google.com",
  port: 465,
  username: "[email protected]",
  password: "pa$$word"
}

await client.connectTLS(params);

await client.send({
  from: "[email protected]", // Your Email address
  to: "[email protected]", // Email address of the destination
  subject: "Mail Title",
  content: "Mail Content,maybe HTML",
});

await client.close();
$ deno --version
deno 1.0.3
v8 8.4.300
typescript 3.9.2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant