BaseEmailTemplateData: {
    base: {
        baseUrl: string;
        mailingListData?: {
            list: MailingList;
            mailingListBaseRoute: string;
            subscriber: MailingListSubscriber;
        };
        title: string;
    };
}

Type declaration

  • base: {
        baseUrl: string;
        mailingListData?: {
            list: MailingList;
            mailingListBaseRoute: string;
            subscriber: MailingListSubscriber;
        };
        title: string;
    }

    The base data shared by all email templates.

    • baseUrl: string

      The base url of the app.

    • OptionalmailingListData?: {
          list: MailingList;
          mailingListBaseRoute: string;
          subscriber: MailingListSubscriber;
      }

      Data about the mailing list that this email belongs to. If any.

      • list: MailingList

        The mailing list that the email belongs to, if any.

      • mailingListBaseRoute: string

        The base route for everything regarding mailing lists.

      • subscriber: MailingListSubscriber

        The subscriber if the email belongs to a mailing list.

    • title: string

      The title of the email.