Skip to content
/ mail Public

API Wrapper for 1secmail written in Deno!

Notifications You must be signed in to change notification settings

connuh/mail

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 

Repository files navigation

Mail - an API wrapper. 📧

API Wrapper for 1secmail written in Deno!


Usage

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: "" }

Contributions

All contributions are accepted, simply open an Issue / Pull request.

About

API Wrapper for 1secmail written in Deno!

Resources

Stars

Watchers

Forks

Packages

No packages published