@bn-digital/strapi-plugin-email-emitter
Version:
Strapi plugin to send emails based on entity lifecycle or schedule rules
30 lines (25 loc) • 632 B
TypeScript
// noinspection JSUnusedGlobalSymbols
declare namespace Strapi {
export namespace Email {
interface Provider {
send(email: EmailInput, template?: { [key: string]: string }, payload?: { [key: string]: string }): Promise<{ response: string }>
}
type Plugin = {
provider: Provider
}
type Settings = {
defaultFrom: string
defaultReplyTo: string
}
type EmailInput = {
to: string
from: string
replyTo?: string
cc?: string
bcc?: string
subject?: string
body?: string
attachments?: Array<any>
}
}
}