functions/index.js
// Sends a goodbye email to the given user.
Sends a goodbye email to the given user.
Sends a goodbye email to the given user .
async function sendGoodbyeEmail(email, displayName) {
  const mailOptions = {
    from: `${APP_NAME} <noreply@firebase.com>`,
    to: email,
  };
  mailOptions.subject = `Bye!`;
  mailOptions.text = `Hey ${
    displayName || ""
  }!, We confirm that we have deleted your ${APP_NAME} account.`;
  await mailTransport.sendMail(mailOptions);
  return null;
}
async function sendGoodbyeEmail ( email , displayName ) { const mailOptions = { from : ` ${ APP_NAME } ` , to : email , } ; mailOptions . subject = ` ` ; mailOptions . text = ` ${ displayName || "" } ${ APP_NAME } ` ; await mailTransport . sendMail ( mailOptions ) ; return null ; }
Sends a goodbye email to the given user.
Sends a goodbye email to the given user .
// The user unsubscribed to the newsletter.