diff --git a/backend/mailgun/mailgun.js b/backend/mailgun/mailgun.js index 594b5d4..ce984ce 100644 --- a/backend/mailgun/mailgun.js +++ b/backend/mailgun/mailgun.js @@ -1,13 +1,13 @@ const mailgun = require("mailgun-js"); const DOMAIN = "sandboxb488ae9cba904e73936d81f35b2ee781.mailgun.org"; const mg = mailgun({ - apiKey: "d05c4d067d69c940d3dac93769dd87a2-fe066263-f6136332", - domain: DOMAIN + apiKey: process.env.MAILGUN_API_KEY, + domain: DOMAIN, }); const sendInvite = async (newUser, email, familyName, inviteLink) => { const data = { - from: "Mailgun Sandbox ", + from: `Family BTC Wallet