This commit is contained in:
parent
925c5a66a6
commit
84b5887934
5 changed files with 7 additions and 2 deletions
|
|
@ -8,6 +8,7 @@ const config: SiteConfig = {
|
|||
'Katholische Pfarrei Heilige Mutter Teresa in Chemnitz – Gottesdienste, Veranstaltungen, Sakramente und Gemeindeleben.',
|
||||
url: 'https://hl-mutter-teresa-chemnitz.de',
|
||||
email: 'chemnitz@pfarrei-bddmei.de',
|
||||
senderEmail: 'noreply@send.hl-mutter-teresa-chemnitz.de',
|
||||
address: 'Hohe Straße 1',
|
||||
postalCode: '09112',
|
||||
city: 'Chemnitz',
|
||||
|
|
|
|||
|
|
@ -8,6 +8,7 @@ const config: SiteConfig = {
|
|||
'Katholische Pfarrei Heilige Drei Könige in Berlin – Gottesdienste, Veranstaltungen, Sakramente und Gemeindeleben.',
|
||||
url: 'https://dreikoenige.berlin',
|
||||
email: 'kontakt@dreikoenige.berlin',
|
||||
senderEmail: 'noreply@dreikoenige.berlin',
|
||||
address: 'Briesestraße 15 – 17',
|
||||
postalCode: '12053',
|
||||
city: 'Berlin',
|
||||
|
|
|
|||
|
|
@ -23,6 +23,7 @@ export interface SiteConfig {
|
|||
description: string
|
||||
url: string
|
||||
email: string
|
||||
senderEmail: string
|
||||
address: string
|
||||
postalCode: string
|
||||
city: string
|
||||
|
|
|
|||
|
|
@ -8,6 +8,7 @@ import { Title } from '@/components/Title/Title'
|
|||
import { MassGrid } from '@/components/MassTable/MassGrid'
|
||||
import { ImageCardSlider } from '@/compositions/ImageCardSlider/ImageCardSlider'
|
||||
import { blogToSlides } from '@/utils/dto/blog'
|
||||
import { siteConfig } from '@/config/site'
|
||||
import forest from '@/assets/map.jpg'
|
||||
import { ContentWithSlider } from '@/compositions/ContentWithSlider/ContentWithSlider'
|
||||
import { EventRow } from '@/components/EventRow/EventRow'
|
||||
|
|
@ -193,7 +194,7 @@ export const HomeView = ({
|
|||
'\n' +
|
||||
'Zögern Sie nicht, uns über das Kontaktformular zu schreiben. Wir freuen uns über jede Nachricht und sind gerne für Sie da.'}
|
||||
schema={"base"}
|
||||
toEmail={"kontakt@dreikoenige.berlin"}
|
||||
toEmail={siteConfig.email}
|
||||
/>
|
||||
</>
|
||||
|
||||
|
|
|
|||
|
|
@ -3,6 +3,7 @@
|
|||
import { z } from 'zod'
|
||||
import { Resend } from 'resend'
|
||||
import { isSpam } from '@/utils/detectSpam'
|
||||
import { siteConfig } from '@/config/site'
|
||||
|
||||
/**
|
||||
* Send email through Resend API
|
||||
|
|
@ -54,7 +55,7 @@ export async function send(toEmail: string, prevState: any, formData: FormData)
|
|||
try {
|
||||
const resend = new Resend(process.env.RESEND_API_KEY);
|
||||
await resend.emails.send({
|
||||
from: 'noreply@dreikoenige.berlin',
|
||||
from: siteConfig.senderEmail,
|
||||
replyTo: validatedFields.data.email,
|
||||
to: toEmail,
|
||||
subject: `Über Kontaktformular: ${validatedFields.data.subject}`,
|
||||
|
|
|
|||
Loading…
Reference in a new issue