TagoIO SDK for JavaScript and TypeScript
    Preparing search index...

    Interface EmailWithTemplate

    interface EmailWithTemplate {
        attachment?: AttachmentOptions;
        from?: string;
        template?: TemplateOptions;
        to: string | string[];
    }
    Index

    Properties

    attachment?: AttachmentOptions

    File attachment for the email (optional)

    AttachmentOptions

    from?: string

    Sender name (optional) If not provided, the default sender name configured in TagoRUN will be used

    "My Application"
    
    template?: TemplateOptions

    TagoRUN Email Template configuration

    Use this to send emails based on pre-defined templates in TagoRUN

    TemplateOptions

    When using a template with an attachment, a $URL$ variable is automatically generated and can be used in the template to reference the attachment

    to: string | string[]

    Recipient email address(es)

    "client@example.com"
    ["client1@example.com", "client2@example.com"]