contact_slack
Security covered
Get instant Slack notifications when visitors submit contact forms on your Drupal website. Simple, powerful, and built for teams that rely on Slack for communication.
Features
- Real-time notifications to any Slack channel
- Per-form configuration with customizable fields
- Multi-channel support for different forms
- Custom message text for context and priority
Setup Instructions
Global Configuration
- Install:
composer require drupal/contact_slack && drush en contact_slack - Create an Incoming Webhook (Slack setup guide)
- Configure at Configuration → Contact Slack settings
- Test the connection with the built-in test message feature
Per-Form Configuration
Go to Structure → Contact forms and click Slack settings for any form to customize:
- Enable/disable notifications for specific forms
- Override webhook URLs to send to different channels (leave empty to use global default)
- Add default message text to prepend custom context (e.g., priority labels, department routing)
- Select fields to include in Slack messages (name, email, subject, message, form name)
- Enable system info to include IP address and user agent
Requirements
- Drupal 10.0+ or Drupal 11.0+
- PHP 8.1 or higher
- Slack workspace with webhook access
Perfect for customer support, sales teams, and any organization that needs instant notification of contact form submissions.