Skip to content

Commit

Permalink
fix: email header
Browse files Browse the repository at this point in the history
  • Loading branch information
fbuireu committed Apr 11, 2024
1 parent 4082e59 commit 8bc7e97
Show file tree
Hide file tree
Showing 5 changed files with 18 additions and 1,370 deletions.
Binary file modified .yarn/install-state.gz
Binary file not shown.
4 changes: 0 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,6 @@
"@fontsource-variable/nunito-sans": "^5.0.13",
"@fontsource/baskervville": "^5.0.19",
"@hookform/resolvers": "^3.3.4",
"@million/lint": "^0.0.73",
"@types/node": "^20.12.7",
"@types/react": "^18.2.75",
"@types/react-dom": "^18.2.24",
Expand All @@ -77,13 +76,10 @@
"@commitlint/config-conventional": "^19.1.0",
"@testing-library/react": "^15.0.0",
"@testing-library/react-hooks": "^8.0.1",
"@types/eslint": "^8.56.7",
"@types/markdown-it": "^14.0.0",
"@types/three": "^0.163.0",
"husky": "^9.0.11",
"lint-staged": "^15.2.2",
"prettier": "3.2.5",
"prettier-plugin-astro": "^0.13.0",
"stylelint": "^16.3.1",
"stylelint-config-recommended": "^14.0.0",
"stylelint-order": "^6.0.4",
Expand Down
25 changes: 0 additions & 25 deletions prettier.config.js

This file was deleted.

2 changes: 1 addition & 1 deletion src/server/email/server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ type ContactDetails = Omit<FormData, "recaptcha">;

export const sendEmail = async ({ name, message, email }: ContactDetails) => {
const { data, error } = await resend.emails.send({
from: atob(CONTACT_DETAILS.ENCODED_EMAIL_FROM),
from: `${name} <${atob(CONTACT_DETAILS.ENCODED_EMAIL_FROM)}>`,
to: atob(CONTACT_DETAILS.ENCODED_BIANCA_EMAIL),
subject: `${CONTACT_DETAILS.EMAIL_SUBJECT} from ${name} (${email})`,
html: `Hello sweetheart! <br /><br/>
Expand Down
Loading

0 comments on commit 8bc7e97

Please sign in to comment.