1.0.4 • Published 4 months ago
osecmail v1.0.4
Usage
import osecmail from "osecmail";
Type Definitions
type MailboxMessage = {
id: number;
from: string;
subject: string;
date: string;
};
type Attachment = {
filename: string;
contentType: string;
size: number;
};
type Message = MailboxMessage & {
attachments: Attachment[];
body: string;
textBody: string;
htmlBody: string;
};
function generateRandomMailboxes(count: number): Promise<string[]>;
function getActiveDomainLists(): Promise<string[]>;
function getMessages(login: string, domain: string): Promise<MailboxMessage[]>;
function getMessage(
login: string,
domain: string,
id: number
): Promise<Message>;