Skip to content
This repository has been archived by the owner on Aug 6, 2024. It is now read-only.

Commit

Permalink
Restore mail
Browse files Browse the repository at this point in the history
Adds `List-Unsubscribe` header for compliance with anti-spam
  • Loading branch information
TheEgghead27 committed Apr 22, 2024
1 parent 445ce5a commit ad59064
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/utils/sendEmail.js
Original file line number Diff line number Diff line change
Expand Up @@ -65,9 +65,10 @@ const sendEmail = async ({

const html = emailRenderer.render(template, variables);
const text = parse(html).structuredText;
return null;
/*
return transporter.sendMail({
headers: {
'list-unsubscribe': '<https://stuyactivities.org/settings>'
},
to,
cc,
bcc,
Expand All @@ -76,7 +77,6 @@ const sendEmail = async ({
text,
replyTo
});
*/
};

export default sendEmail;

0 comments on commit ad59064

Please sign in to comment.