import Mail from "./mod.ts";
/* Generate 10 E-Mails */
let emails: string[] = await Mail.generate(10);
console.log(emails); //> [ "item", "here" ]
/* Get E-Mails from an inbox */
let inbox: string[] = await Mail.get("hi@1secmail.org");
console.log(inbox) //> [ { id: 186037980, from: "conner@ra.pe", subject: "Testing", date: "2021-05-09 15:32:23" } ]
/* Get content from an E-Mail */
let content: string[] = await Mail.get("hi@1secmail.org", "186037980");
console.log(content); //> { id: 186037980, from: "conner@ra.pe", subject: "Testing", date: "2021-05-09 15:32:23", attachments: [], body: "Testing\n", textBody: "Testing\n", htmlBody: "" }
-
Notifications
You must be signed in to change notification settings - Fork 0
connuh/mail
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
API Wrapper for 1secmail written in Deno!
Resources
Stars
Watchers
Forks
Packages 0
No packages published