Developer & DevOps

Execute Commands and Send Automated Email Notifications

9 nodes 346 130 Webhook
Download

Workflow Description

Automate receiving code execution requests via Webhook, running commands on your server, and instantly sending execution results or error messages through Mailgun to designated recipients.

How it works

  1. 1.Receive incoming Webhook request containing the command to execute
  2. 2.Execute the command locally and verify success or failure status
  3. 3.Send execution results or error message via Mailgun email notification

Use cases

  • Trigger build and deployment scripts automatically with team notifications on outcomes
  • Create a CI/CD pipeline combining local script execution with email-based status reporting

Requirements

  • Active Mailgun account with valid API credentials configured
  • Publicly accessible Webhook endpoint that accepts requests from external services

Service Value

Ideal as a smart automation service combining integrations and AI to produce ready-to-use results.

Apps Used

Mailgun

Details

Trigger Webhook
Nodes 9
Apps 1
Views 346
Downloads 130

How to Use

  1. 1.Click "Download Template"
  2. 2.Open your n8n dashboard
  3. 3.Go to Workflows > Import from File
  4. 4.Select downloaded file and configure credentials

Nodes Used (9)

Webhook

Webhook

#1

Add bind-tools

Execute Command

#2

dig check CF

Execute Command

#3

IF

If

#4

Mail CloudFlare

Mailgun

#5

Mail Steam

Mailgun

#6

dig check if domain is valid

Execute Command

#7

If it has nameservers

If

#8

IF1

If

#9