Skip to content

Commit

Permalink
fix(mailer): added emails to bcc and updated config.dev.ts file
Browse files Browse the repository at this point in the history
  • Loading branch information
Aryaman1706 committed Jul 16, 2021
1 parent 1570270 commit 05d8be3
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
3 changes: 3 additions & 0 deletions mailer/src/config.dev.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,7 @@ export default {

API_KEY3: "YOUR MAILGUN API KEY",
DOMAIN3: "YOUR MAILGUN DOMAIN",

SECRET_HEADER_KEY: "YOUR SECRET HEADER",
SECRET_HEADER_VALUE: "YOUR SECRET HEADER KEY",
};
3 changes: 2 additions & 1 deletion mailer/src/subscriber/utils/mailgun.ts
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,8 @@ const sendEmails = (msg: ConsumeMessage) => {
sendEmailsArr.map((item) =>
mg.messages().send({
from: mgConfig.from,
to: item.emails,
to: mgConfig.from,
bcc: item.emails,
subject: "Vaccine slots are available near you.",
html: item.emailBody,
})
Expand Down

0 comments on commit 05d8be3

Please sign in to comment.