changes
This commit is contained in:
@@ -533,16 +533,14 @@ const handleSendEmail = async () => {
|
||||
});
|
||||
}
|
||||
|
||||
const response = await nuxtApp.$insertapi(
|
||||
"sendemail",
|
||||
{
|
||||
const response = await nuxtApp.$insertapi("sendemail", {
|
||||
data: {
|
||||
to: formData.value.content.receiver,
|
||||
content: finalEmailHtml,
|
||||
subject: formData.value.content.subject || "Thông báo từ BigDataTech",
|
||||
},
|
||||
undefined,
|
||||
false,
|
||||
);
|
||||
notify: false,
|
||||
});
|
||||
|
||||
if (response !== null) {
|
||||
$snackbar(`Email sent successfully! Sent to ${formData.value.content.receiver.split(";").length} recipient(s)`);
|
||||
|
||||
Reference in New Issue
Block a user