You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
27 lines
500 B
JavaScript
27 lines
500 B
JavaScript
const { sendEmail } = require('../../../utils/mail');
|
|
|
|
module.exports = {
|
|
inputs: {
|
|
to: {
|
|
type: 'json',
|
|
required: false,
|
|
},
|
|
subject: {
|
|
type: 'string',
|
|
required: false,
|
|
},
|
|
text: {
|
|
type: 'string',
|
|
required: false,
|
|
},
|
|
cc: {
|
|
type: 'json',
|
|
required: false,
|
|
},
|
|
},
|
|
async fn({ to = [], subject = '', text = '', cc = [] }) {
|
|
const mailResult = await sendEmail({ to, subject, text, cc });
|
|
return mailResult;
|
|
},
|
|
};
|