All Downloads are FREE. Search and download functionalities are using the official Maven repository.

META-INF.dirigible.mail.extensions.mail.d.ts Maven / Gradle / Ivy

There is a newer version: 10.6.37
Show newest version
declare module "@dirigible/mail" {
    interface MailClient {
        /**
         * Send mail to MailRecipients
         * @param from
         * @param recipients
         * @param subject
         * @param text
         * @param sybType
         */
        send(from: string, recipients: { to: string[], cc?: string[], bcc?: string[]} | string, subject: string, text: string, sybType);

        toJavaProperties(properties);

        parseRecipients(recipients, type);
    }

    module client {
        /**
         * Get mail client with the provided MailClientOptions, if no options are provided, the default mail client configuration will be used
         * @param options
         */
        function getClient(options): MailClient;

        /**
         * Send mail using the default mail client configuration to MailRecipients
         * @param from
         * @param recipients
         * @param subject
         * @param text
         * @param sybType
         */
        function send(from: string, recipients: { to: string[], cc?: string[], bcc?: string[]} | string , subject: string, text: string, sybType);
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy