Skip to content

Commit

Permalink
Update contact email
Browse files Browse the repository at this point in the history
  • Loading branch information
salimi-my committed Feb 3, 2024
1 parent 2428aa8 commit 7a90ef4
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions app/api/send/route.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { Resend } from 'resend';
import { NextResponse } from 'next/server';

import EmailTemplate from '@/components/landing/email-template';
import ContactEmail from '@/components/emails/contact-email';

const resend = new Resend(process.env.RESEND_API_KEY);

Expand Down Expand Up @@ -43,7 +43,7 @@ export async function POST(req: Request) {
to: ['contact@salimi.my'],
reply_to: email,
subject: subject,
react: EmailTemplate({ email, name, message })
react: ContactEmail({ email, name, message })
});

return NextResponse.json({ success: true, data });
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,17 +11,17 @@ import {
Text
} from '@react-email/components';

interface EmailTemplateProps {
interface ContactEmailProps {
email: string;
name: string;
message: string;
}

export default function EmailTemplate({
export default function ContactEmail({
email,
name,
message
}: EmailTemplateProps) {
}: ContactEmailProps) {
return (
<Html>
<Head>
Expand Down

0 comments on commit 7a90ef4

Please sign in to comment.