Creates a new EmailClient instance
Optionalauth: string | IAuth
Authentication credentials or API key
Closes the client connection Should be called when the client is no longer needed to free resources
Sends an email with the specified configuration
Email configuration
OptionaladditionalOptions: AdditionalEmailOptions
Optional additional settings
Promise resolving to the email send response
const client = new EmailClient('your-api-key');
const response = await client.sendEmail({
from: { email: 'sender@example.com', name: 'Sender Name' },
to: [{ email: 'recipient@example.com', name: 'Recipient Name' }],
subject: 'Test Email',
content: {
value: '<h1>Hello World!</h1><p>This is a test email.</p>',
type: 'html'
},
});
Sends a pre-formatted email in raw EML format
For more information on how to we handle raw emails, please refer to the documentation:
Raw email in EML format, can be a filepath string
OptionaladditionalOptions: AdditionalEmailOptions
Optional additional settings
Promise resolving to the email send response
Sends an email to a group of recipients identified by a group ID
Group email configuration
Promise that resolves when the group send job was successfully created
Client for interacting with Sendlix Email Service API Provides methods for sending various types of emails