Setu-TS
    Preparing search index...

    Interface MailPluginOptions

    Options for the MailPlugin factory.

    app.register(MailPlugin({
    provider: 'smtp',
    options: { host: 'smtp.example.com', port: 587, auth: { user, pass } },
    defaults: { from: 'noreply@myapp.com' },
    }));

    0.1.0

    interface MailPluginOptions {
        defaults?: { from?: string };
        options?: MailProviderOptions;
        provider?: MailProviderType;
        templates?: Record<string, MailTemplate>;
    }
    Index
    defaults?: { from?: string }

    Message defaults applied when a message omits the field.

    Provider-specific options.

    provider?: MailProviderType

    Provider backend. Defaults to 'log'.

    templates?: Record<string, MailTemplate>

    Named body templates available to sendTemplate — {{ variable }} strings, or view components rendered through CAPABILITIES.VIEW (which must then be registered; see MailComponentTemplate).