Skip to content

Commit

Permalink
Merge branch 'feature/sensei-client' of github.com:atlantabitdevs/fam…
Browse files Browse the repository at this point in the history
…ilybtc into feature/sensei-client
  • Loading branch information
bnonni committed May 7, 2022
2 parents e92c329 + 6d1b0f8 commit 53c9643
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
6 changes: 3 additions & 3 deletions backend/mailgun/mailgun.js
Original file line number Diff line number Diff line change
@@ -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 <postmaster@sandboxb488ae9cba904e73936d81f35b2ee781.mailgun.org>",
from: `Family BTC Wallet <postmaster@${DOMAIN}`,
to: email,
subject: "Welcome to BTC Family!",
text:
Expand Down
3 changes: 3 additions & 0 deletions sample.env
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
GOOGLE_APPLICATION_CREDENTIALS=
MAILGUN_API_KEY=
MAILGUN_DOMAIN=

0 comments on commit 53c9643

Please sign in to comment.