@adonisjs/mail
Version:
Mail provider for adonis framework and has support for all common mailing services to send emails
15 lines (14 loc) • 601 B
TypeScript
import { MailResponse } from '../mail_response.js';
import type { SparkPostConfig, NodeMailerMessage, MailTransportContract, SparkPostRuntimeConfig, SparkPostSentMessageInfo } from '../types.js';
/**
* AdonisJS mail transport implementation to send emails
* using Sparkpost's `/message.mime` API endpoint.
*/
export declare class SparkPostTransport implements MailTransportContract {
#private;
constructor(config: SparkPostConfig);
/**
* Send message
*/
send(message: NodeMailerMessage, config?: SparkPostRuntimeConfig): Promise<MailResponse<SparkPostSentMessageInfo>>;
}