mantiqh-email-js
Version:
Package to send email to anyone
19 lines (18 loc) • 612 B
TypeScript
interface EmailParams {
toEmail: string;
subject: string;
body: string;
extraInfo?: Record<string, unknown>;
}
/**
* Resize an image (provided as a buffer) and upload it to S3.
* @param {Buffer} fileBuffer - Image file as a buffer.
* @param {number} width - Desired width.
* @param {number} height - Desired height.
* @param {string} outputKey - S3 object key (filename).
* @returns {Promise<string>} - Returns the CloudFront URL of the uploaded file.
*/
export declare function sendEmail({ toEmail, subject, body, extraInfo, }: EmailParams): Promise<{
message: string;
}>;
export {};