@lucidcms/core
Version:
The core of the Lucid CMS. It's responsible for spinning up the API and serving the CMS.
2 lines • 679 B
JavaScript
import{copy as e}from"../../libs/i18n/copy.mjs";import t from"../../constants/constants.mjs";import n from"./send-email.mjs";import r from"../../utils/services/service-wrapper.mjs";const i=async(i,a)=>Object.values(t.email.templates).find(e=>e.key===a.template&&e.external===!1)?{error:{type:`basic`,status:400,message:e(`server:core.email.templates.internal.only`)},data:void 0}:r(n,{transaction:!0})(i,{type:`external`,to:a.to,subject:a.subject,template:a.template,cc:a.cc,bcc:a.bcc,replyTo:a.replyTo,priority:a.priority,attachments:a.attachments,data:a.data,storage:a.storage,tenantKey:a.tenantKey,from:a.from});export{i as default};
//# sourceMappingURL=send-external.mjs.map