import Mailgun from "mailgun.js";
const mailgun = new Mailgun(FormData);
const mg = mailgun.client({
username: "api",
key: env.MAILGUN_API_KEY || "API_KEY"
});
try {
const data = await mg.messages.create("zigozi.co", {
from: "Zigozi Support <support@zigozi.com>",
to: [to],
subject: subject,
text: text,
html: html,
});
import Mailgun from "mailgun.js";
const mailgun = new Mailgun(FormData);
const mg = mailgun.client({
username: "api",
key: env.MAILGUN_API_KEY || "API_KEY"
});
try {
const data = await mg.messages.create("zigozi.co", {
from: "Zigozi Support <support@zigozi.com>",
to: [to],
subject: subject,
text: text,
html: html,
});