mirror of
https://github.com/Dokploy/website.git
synced 2026-06-15 20:25:25 +02:00
refactor: comment out Slack notification logic in contact form submission
- Temporarily disabled the Slack notification feature in the contact form submission process. - Retained the structure for potential future reactivation while ensuring email notifications remain functional.
This commit is contained in:
@@ -71,22 +71,22 @@ export async function POST(request: NextRequest) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Send notification to Slack (sales or support channel)
|
// // Send notification to Slack (sales or support channel)
|
||||||
try {
|
// try {
|
||||||
const slackSuccess = await notifySlack(body);
|
// const slackSuccess = await notifySlack(body);
|
||||||
if (slackSuccess) {
|
// if (slackSuccess) {
|
||||||
console.log(
|
// console.log(
|
||||||
`Successfully sent ${body.inquiryType} inquiry notification to Slack`,
|
// `Successfully sent ${body.inquiryType} inquiry notification to Slack`,
|
||||||
);
|
// );
|
||||||
} else {
|
// } else {
|
||||||
console.warn(
|
// console.warn(
|
||||||
`Failed to send ${body.inquiryType} inquiry notification to Slack, but continuing with email`,
|
// `Failed to send ${body.inquiryType} inquiry notification to Slack, but continuing with email`,
|
||||||
);
|
// );
|
||||||
}
|
// }
|
||||||
} catch (error) {
|
// } catch (error) {
|
||||||
console.error("Error sending to Slack:", error);
|
// console.error("Error sending to Slack:", error);
|
||||||
// Continue with email even if Slack fails
|
// // Continue with email even if Slack fails
|
||||||
}
|
// }
|
||||||
|
|
||||||
// Format email content
|
// Format email content
|
||||||
const emailSubject = `[${body.inquiryType.toUpperCase()}] New contact form submission from ${body.firstName} ${body.lastName}`;
|
const emailSubject = `[${body.inquiryType.toUpperCase()}] New contact form submission from ${body.firstName} ${body.lastName}`;
|
||||||
|
|||||||
Reference in New Issue
Block a user