Skip to content

Commit

Permalink
changed AISSBackend to NPOBackend
Browse files Browse the repository at this point in the history
  • Loading branch information
michellelin1 committed May 22, 2024
1 parent 27b0e15 commit 8b9baa0
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions src/components/EmailTemplates/EmailSending.jsx
Original file line number Diff line number Diff line change
@@ -1,16 +1,11 @@
import axios from 'axios';
import { renderEmail } from 'react-html-email';

const AISSBackend = axios.create({
baseURL: import.meta.env.VITE_BACKEND_HOST,
withCredentials: true,
});
import { NPOBackend } from '../../utils/auth_utils';

const sendEmail = async (subject, newEmail, emailtemplate) => {
try {
//send Debbie email when user registers
const debbieMail = import.meta.env.VITE_EMAIL_USERNAME;
const response = await AISSBackend.post('/nodemailer/send', {
const response = await NPOBackend.post('/nodemailer/send', {
email: debbieMail,
messageHtml: renderEmail(emailtemplate({ newEmail })),
subject,
Expand Down

0 comments on commit 8b9baa0

Please sign in to comment.