Skip to content

Commit

Permalink
Merge branch 'add-readme' of github.com:ctc-uci/aiss-frontend into ad…
Browse files Browse the repository at this point in the history
…d-readme
  • Loading branch information
Aokijiop committed Jun 20, 2024
2 parents c880809 + a6bdbd1 commit 7d4edd6
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 7d4edd6

Please sign in to comment.