@emailjs/browser
Version:
Official EmailJS SDK for browsers
12 lines (11 loc) • 677 B
TypeScript
import type { EmailJSResponseStatus } from '../../models/EmailJSResponseStatus';
import type { Options } from '../../types/Options';
/**
* Send a template to the specific EmailJS service
* @param {string} serviceID - the EmailJS service ID
* @param {string} templateID - the EmailJS template ID
* @param {object} templateParams - the template params, what will be set to the EmailJS template
* @param {object} options - the EmailJS SDK config options
* @returns {Promise<EmailJSResponseStatus>}
*/
export declare const send: (serviceID: string, templateID: string, templateParams?: Record<string, unknown>, options?: Options | string) => Promise<EmailJSResponseStatus>;