@vulog/aima-notifier
v1.0.0
Published
# sendEmail
Downloads
66
Readme
@vulog/aima-notifier
sendEmail
Call the AiMA notifier component to send an email
import { getClient } from '@vulog/aima-client';
import { sendEmail } from '@vulog/aima-notifier';
const client = getClient({
apiKey: '...',
baseUrl: '...',
clientId: '...',
clientSecret: '...',
fleetId: '...',
});
const bodyData: SendEmailData = {
param1: 'val1',
};
const body: SendEmailParam = {
bodyData,
lang: 'en_GB',
to: ['[email protected]'],
type: 'test-type',
};
await sendEmail(client, body);