Skip to content

Commit

Permalink
fix: stop email service
Browse files Browse the repository at this point in the history
  • Loading branch information
lopahn2 committed Nov 17, 2023
1 parent c5770c8 commit c5396d5
Showing 1 changed file with 24 additions and 24 deletions.
48 changes: 24 additions & 24 deletions lib/funcs.js
Original file line number Diff line number Diff line change
Expand Up @@ -60,18 +60,18 @@ export const contractPdfController = async (html, fileName, email) => {
.then(async (data) => {
s3Url = data.Location;

await emailCon.sendMail({
from: `"The Dreaming, Suite" <${process.env.GMAIL_ID}>`,
to: email,
subject: "The Dreaming, Suite 당신의 순간을 응원합니다. [ 계약서 ]",
text: "진심을 보증합니다, 당신이 찾는 그 곳. SUITE",
attachments: [
{
filename: "SUITE-Contract.pdf", // Name of the PDF file as it will appear in the email
content: PDF,
},
],
});
// await emailCon.sendMail({
// from: `"The Dreaming, Suite" <${process.env.GMAIL_ID}>`,
// to: email,
// subject: "The Dreaming, Suite 당신의 순간을 응원합니다. [ 계약서 ]",
// text: "진심을 보증합니다, 당신이 찾는 그 곳. SUITE",
// attachments: [
// {
// filename: "SUITE-Contract.pdf", // Name of the PDF file as it will appear in the email
// content: PDF,
// },
// ],
// });
})
.catch((e) => {
console.error(e);
Expand Down Expand Up @@ -116,18 +116,18 @@ export const certificatedPdfController = async (html, fileName, email) => {
.then(async (data) => {
s3Url = data.Location;

await emailCon.sendMail({
from: `"The Dreaming, Suite" <${process.env.GMAIL_ID}>`,
to: email,
subject: "The Dreaming, Suite 당신의 순간을 응원합니다. [ 수료증 ]",
text: "진심을 보증합니다, 당신이 찾는 그 곳. SUITE",
attachments: [
{
filename: "SUITE-Certificated.pdf", // Name of the PDF file as it will appear in the email
content: PDF,
},
],
});
// await emailCon.sendMail({
// from: `"The Dreaming, Suite" <${process.env.GMAIL_ID}>`,
// to: email,
// subject: "The Dreaming, Suite 당신의 순간을 응원합니다. [ 수료증 ]",
// text: "진심을 보증합니다, 당신이 찾는 그 곳. SUITE",
// attachments: [
// {
// filename: "SUITE-Certificated.pdf", // Name of the PDF file as it will appear in the email
// content: PDF,
// },
// ],
// });
})
.catch((e) => {
console.error(e);
Expand Down

0 comments on commit c5396d5

Please sign in to comment.