mktcms 0.3.10 → 0.3.11

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/module.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "mktcms",
3
3
  "configKey": "mktcms",
4
- "version": "0.3.10",
4
+ "version": "0.3.11",
5
5
  "builder": {
6
6
  "@nuxt/module-builder": "1.0.2",
7
7
  "unbuild": "3.6.1"
@@ -1,6 +1,7 @@
1
- export declare function sendMail({ to, from, subject, fields, replyTo, templateHtml, templateText, }: {
1
+ export declare function sendMail({ to, from, envelopeFrom, subject, fields, replyTo, templateHtml, templateText, }: {
2
2
  to?: string;
3
3
  from?: string;
4
+ envelopeFrom?: string;
4
5
  subject: string;
5
6
  fields: Record<string, any>;
6
7
  replyTo?: string;
@@ -4,6 +4,7 @@ import { useRuntimeConfig } from "nitropack/runtime";
4
4
  export async function sendMail({
5
5
  to,
6
6
  from,
7
+ envelopeFrom,
7
8
  subject,
8
9
  fields,
9
10
  replyTo,
@@ -24,6 +25,9 @@ export async function sendMail({
24
25
  const finalText = templateText ? ejs.render(templateText, { fields }) : Object.entries(fields).map(([key, value]) => `${key}: ${value}`).join("\n");
25
26
  const mailOptions = {
26
27
  from: from || mailerFrom,
28
+ envelope: {
29
+ from: envelopeFrom || from || mailerFrom
30
+ },
27
31
  to: to || mailerTo,
28
32
  replyTo: replyTo || void 0,
29
33
  subject,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mktcms",
3
- "version": "0.3.10",
3
+ "version": "0.3.11",
4
4
  "description": "Simple CMS module for Nuxt",
5
5
  "repository": "mktcode/mktcms",
6
6
  "license": "MIT",