create-emails
Version:
A Node.js API to create email accounts using cPanel’s API. This package automates email account creation, making it useful for hosting services, SaaS applications, and businesses that need email provisioning.
23 lines (17 loc) • 967 B
TypeScript
declare module "create-emails" {
export function createEmailCpanel(
options: { domain: string; email: string; password: string,quota:number },
auth: { username: string; password: string,cpanelHost:string }
): Promise<{data:any,errors:any,messages:any,status:any}>;
export function deleteEmailCpanel(
options: { domain: string; email: string; },
auth: { username: string; password: string,cpanelHost:string }
): Promise<{data:any,errors:any,messages:any,status:any}>;
export function listEmailsCpanel(
options: { domain: string; },
auth: { username: string; password: string,cpanelHost:string }
): Promise<{data:any,errors:any,messages:any,status:any}>;
export function fetchEmail(
options: { domain: string; email: string; password: string,folder:string }
): Promise<{subject:string,from:string,date:string,textBody:string,htmlBody:boolean|string}[]>;
}