utils/effects/smtp
Ce contenu n’est pas encore disponible dans votre langue.
Classes
Section titled “Classes”SMTPMailer
Section titled “SMTPMailer”Defined in: studiocms/packages/studiocms/src/utils/effects/smtp.ts:139^
SMTPMailer service for sending emails.
This service provides methods to send emails using the SMTP protocol. It uses the configuration provided by the SMTPTransportConfig context.
Template
Section titled “Template”The type of the service.
Extends
Section titled “Extends”any
Constructors
Section titled “Constructors”Constructor
Section titled “Constructor”new SMTPMailer(): SMTPMailer
Returns
Section titled “Returns”Inherited from
Section titled “Inherited from”Effect.Service<SMTPMailer>()( 'studiocms/lib/effects/smtp/SMTPMailer', { effect: genLogger('studiocms/lib/effects/smtp/SMTPMailer.effect')(function () { const config = yield buildTransporterConfig;
const { getVersionString, isIdle, sendMail, verifyTransport }: SMTPMailerReturn = yield SMTPService.pipe(buildProvide(config));
return { verifyTransport, sendMail, isIdle, getVersionString }; }), }).constructor
Type Aliases
Section titled “Type Aliases”SMTPMailerReturn
Section titled “SMTPMailerReturn”type SMTPMailerReturn = { getVersionString: () => Effect.Effect<string, Error, never>; isIdle: () => Effect.Effect<boolean, Error, never>; sendMail: (mailOptions: Mail.Options) => Effect.Effect<SMTPTransport.SentMessageInfo, Error, never>; verifyTransport: () => Effect.Effect<true, Error, never>;};
Defined in: studiocms/packages/studiocms/src/utils/effects/smtp.ts:113^
Represents the return type for the SMTPMailer service.
Properties
Section titled “Properties”getVersionString()
Section titled “getVersionString()”getVersionString: () => Effect.Effect<string, Error, never>;
Defined in: studiocms/packages/studiocms/src/utils/effects/smtp.ts:114^
Returns
Section titled “Returns”Effect.Effect
<string
, Error
, never
>
isIdle()
Section titled “isIdle()”isIdle: () => Effect.Effect<boolean, Error, never>;
Defined in: studiocms/packages/studiocms/src/utils/effects/smtp.ts:115^
Returns
Section titled “Returns”Effect.Effect
<boolean
, Error
, never
>
sendMail()
Section titled “sendMail()”sendMail: (mailOptions: Mail.Options) => Effect.Effect<SMTPTransport.SentMessageInfo, Error, never>;
Defined in: studiocms/packages/studiocms/src/utils/effects/smtp.ts:116^
Parameters
Section titled “Parameters”mailOptions
Section titled “mailOptions”Mail.Options
Returns
Section titled “Returns”Effect.Effect
<SMTPTransport.SentMessageInfo
, Error
, never
>
verifyTransport()
Section titled “verifyTransport()”verifyTransport: () => Effect.Effect<true, Error, never>;
Defined in: studiocms/packages/studiocms/src/utils/effects/smtp.ts:119^
Returns
Section titled “Returns”Effect.Effect
<true
, Error
, never
>
tsMailer
Section titled “tsMailer”type tsMailer = typeof tsMailerConfig.$inferSelect;
Defined in: studiocms/packages/studiocms/src/utils/effects/smtp.ts:24^
TypeSafe Table definition for use in StudioCMS Integrations
tsMailerInsert
Section titled “tsMailerInsert”type tsMailerInsert = Omit<typeof tsMailerConfig.$inferInsert, "id">;
Defined in: studiocms/packages/studiocms/src/utils/effects/smtp.ts:29^
TypeSafe Table definition for use in StudioCMS Integrations
References
Section titled “References”Renames and re-exports createComponentProxy