Quick overview
This workflow receives website contact form submissions via a webhook, logs each submission to Microsoft SharePoint, generates a branded HTML email, and sends a notification through Microsoft Outlook.
How it works
- Receives a POST webhook request when a contact form is submitted.
- Sets workflow-level values such as the internal notification recipient email address.
- Creates a new item in a Microsoft SharePoint list using the submitted contact name as the item title.
- Builds a branded HTML email from the submitted fields (name, email, phone, date/time, and message) with fallback values for missing data.
- Sends an HTML notification email via Microsoft Outlook to the configured recipient and sets the Reply-To address to the submitter’s email.
Setup
- Copy the webhook URL from n8n and configure your contact form to POST submissions to it.
- Add Microsoft SharePoint credentials in n8n and update the Site ID and List ID used to create the list item.
- Add Microsoft Outlook credentials in n8n and set the notification recipient email address in the workflow settings.
- Update the email branding values in the code step (logo URL, brand name, website, and colors) to match your organization.
Requirements
- n8n instance running
- Microsoft SharePoint account and API credentials
- Microsoft Outlook account and API credentials
- Access to your contact form’s HTML or backend code
Customization
- Change the email branding or content in the “Generate Branded Email HTML” Code node.
- Add extra fields to be logged in SharePoint in the corresponding node’s configuration.
- Adjust notification recipient(s) in the Outlook “Send Email Notification” node.
- Add or remove workflow steps to support additional form fields or other systems.
Additional info
For support, contact [email protected] (AI Solutions, Inc.)