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)
|
||||
try {
|
||||
const slackSuccess = await notifySlack(body);
|
||||
if (slackSuccess) {
|
||||
console.log(
|
||||
`Successfully sent ${body.inquiryType} inquiry notification to Slack`,
|
||||
);
|
||||
} else {
|
||||
console.warn(
|
||||
`Failed to send ${body.inquiryType} inquiry notification to Slack, but continuing with email`,
|
||||
);
|
||||
}
|
||||
} catch (error) {
|
||||
console.error("Error sending to Slack:", error);
|
||||
// Continue with email even if Slack fails
|
||||
}
|
||||
// // Send notification to Slack (sales or support channel)
|
||||
// try {
|
||||
// const slackSuccess = await notifySlack(body);
|
||||
// if (slackSuccess) {
|
||||
// console.log(
|
||||
// `Successfully sent ${body.inquiryType} inquiry notification to Slack`,
|
||||
// );
|
||||
// } else {
|
||||
// console.warn(
|
||||
// `Failed to send ${body.inquiryType} inquiry notification to Slack, but continuing with email`,
|
||||
// );
|
||||
// }
|
||||
// } catch (error) {
|
||||
// console.error("Error sending to Slack:", error);
|
||||
// // Continue with email even if Slack fails
|
||||
// }
|
||||
|
||||
// Format email content
|
||||
const emailSubject = `[${body.inquiryType.toUpperCase()}] New contact form submission from ${body.firstName} ${body.lastName}`;
|
||||
|
||||
Reference in New Issue
Block a user