Updated site completely
This commit is contained in:
@@ -69,4 +69,4 @@ To test the email system:
|
||||
1. Configure the `.env` file with your SMTP settings
|
||||
2. Submit the contact form on the website
|
||||
3. Check the logs for email sending attempts
|
||||
4. In production mode, check your inbox for the actual emails
|
||||
4. In production mode, check your inbox for the actual emails
|
||||
|
@@ -13,7 +13,7 @@ export function getAdminNotificationSubject(): string {
|
||||
|
||||
export function getAdminNotificationHtml(props: AdminNotificationProps): string {
|
||||
const { name, email, message, submittedAt, ipAddress, userAgent } = props;
|
||||
|
||||
|
||||
return `
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
@@ -92,7 +92,7 @@ export function getAdminNotificationHtml(props: AdminNotificationProps): string
|
||||
|
||||
export function getAdminNotificationText(props: AdminNotificationProps): string {
|
||||
const { name, email, message, submittedAt, ipAddress, userAgent } = props;
|
||||
|
||||
|
||||
return `
|
||||
New Contact Form Submission
|
||||
|
||||
@@ -108,4 +108,4 @@ User Agent: ${userAgent || 'Not available'}
|
||||
|
||||
This is an automated email from your website contact form.
|
||||
`;
|
||||
}
|
||||
}
|
||||
|
@@ -17,9 +17,9 @@ export function getUserConfirmationHtml(props: UserConfirmationProps): string {
|
||||
message,
|
||||
submittedAt,
|
||||
websiteName = process.env.WEBSITE_NAME || '365devnet.eu',
|
||||
contactEmail = process.env.ADMIN_EMAIL || 'richard@bergsma.it'
|
||||
contactEmail = process.env.ADMIN_EMAIL || 'richard@bergsma.it',
|
||||
} = props;
|
||||
|
||||
|
||||
return `
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
@@ -97,9 +97,9 @@ export function getUserConfirmationText(props: UserConfirmationProps): string {
|
||||
message,
|
||||
submittedAt,
|
||||
websiteName = process.env.WEBSITE_NAME || '365devnet.eu',
|
||||
contactEmail = process.env.ADMIN_EMAIL || 'richard@bergsma.it'
|
||||
contactEmail = process.env.ADMIN_EMAIL || 'richard@bergsma.it',
|
||||
} = props;
|
||||
|
||||
|
||||
return `
|
||||
Thank you for contacting ${websiteName}
|
||||
|
||||
@@ -117,4 +117,4 @@ The ${websiteName} Team
|
||||
|
||||
If you did not submit this contact form, please disregard this email or contact us at ${contactEmail}.
|
||||
`;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user