interface EmailCampaignsService {
    getCampaignEmailsForTrip(tripId: string): Promise<CampaignEmailStatus[]>;
    getHtmlPreview(
        emailHookId: string,
        templateVariables: Record<string | symbol, unknown>,
        recipientVariables: Record<string | symbol, string>,
    ): Promise<HtmlPreviewResponse>;
    sendTest(
        emailHookId: string,
        templateVariables: Record<string | symbol, unknown>,
        recipientVariables: Record<string | symbol, string>,
    ): Promise<string>;
}

Methods

  • Sends a test email to the user

    Parameters

    • emailHookId: string
    • templateVariables: Record<string | symbol, unknown>
    • recipientVariables: Record<string | symbol, string>

    Returns Promise<string>