Skip to content

Commit cceb7de

Browse files
committed
add to_email or receiverEmail
1 parent 311089f commit cceb7de

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

v2/src/config/emailjs.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ export const emailJsConfig = {
1818
serviceId: import.meta.env.VITE_EMAILJS_SERVICE_ID || '',
1919
templateId: import.meta.env.VITE_EMAILJS_TEMPLATE_ID || '',
2020
publicKey: import.meta.env.VITE_EMAILJS_PUBLIC_KEY || '',
21+
receiverEmail: import.meta.env.VITE_RECEIVER_EMAIL || '[email protected]',
2122
};
2223

2324
export const isEmailJsConfigured = () => {

v2/src/pages/Contact.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,7 @@ export function Contact({ onClose }: ContactProps) {
8080
whatsapp: formData.whatsapp || "Not provided",
8181
subject: formData.subject,
8282
message: formData.message,
83+
to_email: emailJsConfig.receiverEmail,
8384
time: String(new Date()),
8485
},
8586
emailJsConfig.publicKey

0 commit comments

Comments
 (0)