[{"data":1,"prerenderedAt":769},["ShallowReactive",2],{"content-query-zS8yX5tBV2":3,"content-query-W4RtfFQaoh":554,"content-query-yP1cWMns5L":579,"content-query-M5aWdXgQKx":583,"content-query-eJ9XWy0CGH":590,"content-query-7VgBfxLOWV":603,"content-query-UP87PRcOMw":625,"content-query-Z6fTkbgt1D":629,"content-query-9giMhwHrGj":641,"content-query-j8GGVgf9na":648,"content-query-IVhcXRs1sR":661,"content-query-G03kJtQzJS":665,"content-query-1mvwAKmUBq":684,"content-query-No6iPTj4EO":709,"content-query-zRSmsuVl55":719,"content-query-MsdmgXewTK":723,"content-query-BMhIInEJl2":730},{"_path":4,"_dir":5,"_draft":6,"_partial":6,"_locale":7,"title":8,"description":9,"intro":10,"type":11,"layout":12,"tags":13,"body":15,"_type":547,"_id":548,"_source":549,"_file":550,"_stem":551,"_extension":552,"sitemap":553},"/docs/tutorials/n8n/email-trigger","n8n",false,"","n8n Email Trigger (Inbound Email)","Trigger n8n workflows from inbound email — no IMAP, mail server or polling. Webhook Relay gives you a unique address, parses each message to JSON and streams it to self-hosted n8n over a WebSocket.","Start n8n workflows from inbound email with no IMAP, mail server or polling — a unique address, parsed to JSON, streamed over a WebSocket.","tutorial","doc",[5,14],"Email",{"type":16,"children":17,"toc":541},"root",[18,59,81,88,136,145,151,161,169,175,255,263,491,504,510,535],{"type":19,"tag":20,"props":21,"children":22},"element","p",{},[23,26,32,34,43,45,50,52,57],{"type":24,"value":25},"text","The usual way to receive email in n8n is the ",{"type":19,"tag":27,"props":28,"children":29},"strong",{},[30],{"type":24,"value":31},"IMAP",{"type":24,"value":33}," node, which polls a mailbox you have to own and configure. The ",{"type":19,"tag":35,"props":36,"children":40},"a",{"href":37,"rel":38},"https://www.npmjs.com/package/n8n-nodes-webhookrelay",[39],"nofollow",[41],{"type":24,"value":42},"Webhook Relay Email Trigger",{"type":24,"value":44}," skips all of that: it gives you a ",{"type":19,"tag":27,"props":46,"children":47},{},[48],{"type":24,"value":49},"unique inbound address",{"type":24,"value":51},", parses every message to JSON, and streams it to n8n over an ",{"type":19,"tag":27,"props":53,"children":54},{},[55],{"type":24,"value":56},"outbound WebSocket",{"type":24,"value":58}," — no IMAP, no mail server, no polling, and n8n is never exposed.",{"type":19,"tag":20,"props":60,"children":61},{},[62,64,70,72,79],{"type":24,"value":63},"If you haven't installed the node yet, follow steps 1–2 of the ",{"type":19,"tag":35,"props":65,"children":67},{"href":66},"/docs/tutorials/n8n/webhook-trigger",[68],{"type":24,"value":69},"Webhook Trigger tutorial",{"type":24,"value":71}," (install ",{"type":19,"tag":73,"props":74,"children":76},"code",{"className":75},[],[77],{"type":24,"value":78},"n8n-nodes-webhookrelay",{"type":24,"value":80}," and add the API-key credential) — the same credential works for both triggers.",{"type":19,"tag":82,"props":83,"children":85},"h2",{"id":84},"_1-add-the-email-trigger",[86],{"type":24,"value":87},"1. Add the Email Trigger",{"type":19,"tag":20,"props":89,"children":90},{},[91,93,97,99,104,106,112,114,119,121,126,128,134],{"type":24,"value":92},"Add a ",{"type":19,"tag":27,"props":94,"children":95},{},[96],{"type":24,"value":42},{"type":24,"value":98},", give it a ",{"type":19,"tag":27,"props":100,"children":101},{},[102],{"type":24,"value":103},"Bucket",{"type":24,"value":105}," name (e.g. ",{"type":19,"tag":73,"props":107,"children":109},{"className":108},[],[110],{"type":24,"value":111},"n8n-email",{"type":24,"value":113},"), and optionally restrict ",{"type":19,"tag":27,"props":115,"children":116},{},[117],{"type":24,"value":118},"Allowed Senders",{"type":24,"value":120},". Open the ",{"type":19,"tag":27,"props":122,"children":123},{},[124],{"type":24,"value":125},"Email Address",{"type":24,"value":127}," field to get your unique inbound address (",{"type":19,"tag":73,"props":129,"children":131},{"className":130},[],[132],{"type":24,"value":133},"\u003Cuuid>@in.webhookrelay-mail.com",{"type":24,"value":135},").",{"type":19,"tag":20,"props":137,"children":138},{},[139],{"type":19,"tag":140,"props":141,"children":144},"img",{"alt":142,"src":143},"Webhook Relay Email Trigger parameters","/images/tutorials/n8n/04-email-config.png",[],{"type":19,"tag":82,"props":146,"children":148},{"id":147},"_2-send-a-test-email",[149],{"type":24,"value":150},"2. Send a test email",{"type":19,"tag":20,"props":152,"children":153},{},[154,159],{"type":19,"tag":27,"props":155,"children":156},{},[157],{"type":24,"value":158},"Activate",{"type":24,"value":160}," the workflow, then send an email to that address from any client.",{"type":19,"tag":20,"props":162,"children":163},{},[164],{"type":19,"tag":140,"props":165,"children":168},{"alt":166,"src":167},"Sending a test email to the Webhook Relay inbound address","/images/tutorials/n8n/send-test-email.png",[],{"type":19,"tag":82,"props":170,"children":172},{"id":171},"_3-watch-it-arrive",[173],{"type":24,"value":174},"3. Watch it arrive",{"type":19,"tag":20,"props":176,"children":177},{},[178,180,186,188,194,195,200,201,207,208,214,215,221,223,229,230,236,238,244,246,253],{"type":24,"value":179},"Within a second or two the parsed message reaches n8n. Each email arrives as structured JSON — ",{"type":19,"tag":73,"props":181,"children":183},{"className":182},[],[184],{"type":24,"value":185},"from",{"type":24,"value":187},", ",{"type":19,"tag":73,"props":189,"children":191},{"className":190},[],[192],{"type":24,"value":193},"subject",{"type":24,"value":187},{"type":19,"tag":73,"props":196,"children":198},{"className":197},[],[199],{"type":24,"value":24},{"type":24,"value":187},{"type":19,"tag":73,"props":202,"children":204},{"className":203},[],[205],{"type":24,"value":206},"html",{"type":24,"value":187},{"type":19,"tag":73,"props":209,"children":211},{"className":210},[],[212],{"type":24,"value":213},"attachments",{"type":24,"value":187},{"type":19,"tag":73,"props":216,"children":218},{"className":217},[],[219],{"type":24,"value":220},"spf",{"type":24,"value":222},"/",{"type":19,"tag":73,"props":224,"children":226},{"className":225},[],[227],{"type":24,"value":228},"dkim",{"type":24,"value":222},{"type":19,"tag":73,"props":231,"children":233},{"className":232},[],[234],{"type":24,"value":235},"dmarc",{"type":24,"value":237}," and the full ",{"type":19,"tag":73,"props":239,"children":241},{"className":240},[],[242],{"type":24,"value":243},"headers",{"type":24,"value":245}," map — ready for downstream nodes. You can inspect exactly what was received in the ",{"type":19,"tag":35,"props":247,"children":250},{"href":248,"rel":249},"https://my.webhookrelay.com/buckets",[39],[251],{"type":24,"value":252},"dashboard",{"type":24,"value":254},".",{"type":19,"tag":20,"props":256,"children":257},{},[258],{"type":19,"tag":140,"props":259,"children":262},{"alt":260,"src":261},"Parsed inbound email in the Webhook Relay dashboard","/images/tutorials/n8n/webhookrelay-email-debug.png",[],{"type":19,"tag":264,"props":265,"children":269},"pre",{"className":266,"code":267,"language":268,"meta":7,"style":7},"language-json shiki shiki-themes github-dark","{\n  \"from\": \"jon@example.com\",\n  \"from_name\": \"Jon Snow\",\n  \"recipient\": \"\u003Cuuid>@in.webhookrelay-mail.com\",\n  \"subject\": \"Order #4821 confirmed\",\n  \"text\": \"plain body\",\n  \"html\": \"\u003Cp>html body\u003C/p>\",\n  \"spf\": \"pass\",\n  \"dkim\": \"pass\",\n  \"dmarc\": \"pass\"\n}\n","json",[270],{"type":19,"tag":73,"props":271,"children":272},{"__ignoreMap":7},[273,285,311,333,355,377,399,421,443,464,482],{"type":19,"tag":274,"props":275,"children":278},"span",{"class":276,"line":277},"line",1,[279],{"type":19,"tag":274,"props":280,"children":282},{"style":281},"--shiki-default:#E1E4E8",[283],{"type":24,"value":284},"{\n",{"type":19,"tag":274,"props":286,"children":288},{"class":276,"line":287},2,[289,295,300,306],{"type":19,"tag":274,"props":290,"children":292},{"style":291},"--shiki-default:#79B8FF",[293],{"type":24,"value":294},"  \"from\"",{"type":19,"tag":274,"props":296,"children":297},{"style":281},[298],{"type":24,"value":299},": ",{"type":19,"tag":274,"props":301,"children":303},{"style":302},"--shiki-default:#9ECBFF",[304],{"type":24,"value":305},"\"jon@example.com\"",{"type":19,"tag":274,"props":307,"children":308},{"style":281},[309],{"type":24,"value":310},",\n",{"type":19,"tag":274,"props":312,"children":314},{"class":276,"line":313},3,[315,320,324,329],{"type":19,"tag":274,"props":316,"children":317},{"style":291},[318],{"type":24,"value":319},"  \"from_name\"",{"type":19,"tag":274,"props":321,"children":322},{"style":281},[323],{"type":24,"value":299},{"type":19,"tag":274,"props":325,"children":326},{"style":302},[327],{"type":24,"value":328},"\"Jon Snow\"",{"type":19,"tag":274,"props":330,"children":331},{"style":281},[332],{"type":24,"value":310},{"type":19,"tag":274,"props":334,"children":336},{"class":276,"line":335},4,[337,342,346,351],{"type":19,"tag":274,"props":338,"children":339},{"style":291},[340],{"type":24,"value":341},"  \"recipient\"",{"type":19,"tag":274,"props":343,"children":344},{"style":281},[345],{"type":24,"value":299},{"type":19,"tag":274,"props":347,"children":348},{"style":302},[349],{"type":24,"value":350},"\"\u003Cuuid>@in.webhookrelay-mail.com\"",{"type":19,"tag":274,"props":352,"children":353},{"style":281},[354],{"type":24,"value":310},{"type":19,"tag":274,"props":356,"children":358},{"class":276,"line":357},5,[359,364,368,373],{"type":19,"tag":274,"props":360,"children":361},{"style":291},[362],{"type":24,"value":363},"  \"subject\"",{"type":19,"tag":274,"props":365,"children":366},{"style":281},[367],{"type":24,"value":299},{"type":19,"tag":274,"props":369,"children":370},{"style":302},[371],{"type":24,"value":372},"\"Order #4821 confirmed\"",{"type":19,"tag":274,"props":374,"children":375},{"style":281},[376],{"type":24,"value":310},{"type":19,"tag":274,"props":378,"children":380},{"class":276,"line":379},6,[381,386,390,395],{"type":19,"tag":274,"props":382,"children":383},{"style":291},[384],{"type":24,"value":385},"  \"text\"",{"type":19,"tag":274,"props":387,"children":388},{"style":281},[389],{"type":24,"value":299},{"type":19,"tag":274,"props":391,"children":392},{"style":302},[393],{"type":24,"value":394},"\"plain body\"",{"type":19,"tag":274,"props":396,"children":397},{"style":281},[398],{"type":24,"value":310},{"type":19,"tag":274,"props":400,"children":402},{"class":276,"line":401},7,[403,408,412,417],{"type":19,"tag":274,"props":404,"children":405},{"style":291},[406],{"type":24,"value":407},"  \"html\"",{"type":19,"tag":274,"props":409,"children":410},{"style":281},[411],{"type":24,"value":299},{"type":19,"tag":274,"props":413,"children":414},{"style":302},[415],{"type":24,"value":416},"\"\u003Cp>html body\u003C/p>\"",{"type":19,"tag":274,"props":418,"children":419},{"style":281},[420],{"type":24,"value":310},{"type":19,"tag":274,"props":422,"children":424},{"class":276,"line":423},8,[425,430,434,439],{"type":19,"tag":274,"props":426,"children":427},{"style":291},[428],{"type":24,"value":429},"  \"spf\"",{"type":19,"tag":274,"props":431,"children":432},{"style":281},[433],{"type":24,"value":299},{"type":19,"tag":274,"props":435,"children":436},{"style":302},[437],{"type":24,"value":438},"\"pass\"",{"type":19,"tag":274,"props":440,"children":441},{"style":281},[442],{"type":24,"value":310},{"type":19,"tag":274,"props":444,"children":446},{"class":276,"line":445},9,[447,452,456,460],{"type":19,"tag":274,"props":448,"children":449},{"style":291},[450],{"type":24,"value":451},"  \"dkim\"",{"type":19,"tag":274,"props":453,"children":454},{"style":281},[455],{"type":24,"value":299},{"type":19,"tag":274,"props":457,"children":458},{"style":302},[459],{"type":24,"value":438},{"type":19,"tag":274,"props":461,"children":462},{"style":281},[463],{"type":24,"value":310},{"type":19,"tag":274,"props":465,"children":467},{"class":276,"line":466},10,[468,473,477],{"type":19,"tag":274,"props":469,"children":470},{"style":291},[471],{"type":24,"value":472},"  \"dmarc\"",{"type":19,"tag":274,"props":474,"children":475},{"style":281},[476],{"type":24,"value":299},{"type":19,"tag":274,"props":478,"children":479},{"style":302},[480],{"type":24,"value":481},"\"pass\"\n",{"type":19,"tag":274,"props":483,"children":485},{"class":276,"line":484},11,[486],{"type":19,"tag":274,"props":487,"children":488},{"style":281},[489],{"type":24,"value":490},"}\n",{"type":19,"tag":20,"props":492,"children":493},{},[494,496,502],{"type":24,"value":495},"See the full ",{"type":19,"tag":35,"props":497,"children":499},{"href":498},"/docs/email/payload",[500],{"type":24,"value":501},"payload reference",{"type":24,"value":503}," for every field.",{"type":19,"tag":82,"props":505,"children":507},{"id":506},"get-started",[508],{"type":24,"value":509},"Get started",{"type":19,"tag":20,"props":511,"children":512},{},[513,520,522,527,529,534],{"type":19,"tag":35,"props":514,"children":517},{"href":515,"rel":516},"https://my.webhookrelay.com/register",[39],[518],{"type":24,"value":519},"Create a free Webhook Relay account",{"type":24,"value":521},", add the Email Trigger, and turn support requests, alerts and form submissions into n8n workflows — no IMAP or mailbox required. Receiving ",{"type":19,"tag":27,"props":523,"children":524},{},[525],{"type":24,"value":526},"HTTP webhooks",{"type":24,"value":528}," too? See the ",{"type":19,"tag":35,"props":530,"children":531},{"href":66},[532],{"type":24,"value":533},"n8n Webhook Trigger",{"type":24,"value":254},{"type":19,"tag":536,"props":537,"children":538},"style",{},[539],{"type":24,"value":540},"html .default .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}",{"title":7,"searchDepth":313,"depth":313,"links":542},[543,544,545,546],{"id":84,"depth":287,"text":87},{"id":147,"depth":287,"text":150},{"id":171,"depth":287,"text":174},{"id":506,"depth":287,"text":509},"markdown","content:docs:tutorials:n8n:email-trigger.md","content","docs/tutorials/n8n/email-trigger.md","docs/tutorials/n8n/email-trigger","md",{"loc":4},[555,558,561,564,567,570,573,576],{"_path":556,"title":557},"/docs/installation/cli","CLI",{"_path":559,"title":560},"/docs/installation/docker","Docker container",{"_path":562,"title":563},"/docs/installation/docker-compose","Docker Compose",{"_path":565,"title":566},"/docs/installation/kubernetes","Kubernetes",{"_path":568,"title":569},"/docs/installation/autostart-windows","Autostart (Windows)",{"_path":571,"title":572},"/docs/installation/autostart-linux","Autostart (Linux)",{"_path":574,"title":575},"/docs/installation/autostart-macos","Autostart (MacOS)",{"_path":577,"title":578},"/docs/installation/behind-proxy","HTTP proxy configuration",[580],{"_path":581,"title":582},"/docs/webhooks/internal/localhost","Receiving webhooks on localhost",[584,587],{"_path":585,"title":586},"/docs/webhooks/public/public-destination","Forward to public URL",{"_path":588,"title":589},"/docs/webhooks/public/multiple-destination-urls","Multiple destinations",[591,594,597,600],{"_path":592,"title":593},"/docs/webhooks/auth/username-password","Username and password",{"_path":595,"title":596},"/docs/webhooks/auth/hmac","HMAC",{"_path":598,"title":599},"/docs/webhooks/auth/jwt","JWT authentication",{"_path":601,"title":602},"/docs/webhooks/auth/http-method","Auth using request method",[604,607,610,613,616,619,622],{"_path":605,"title":606},"/docs/service-connections","Service Connections",{"_path":608,"title":609},"/docs/service-connections/aws_s3","AWS S3",{"_path":611,"title":612},"/docs/service-connections/aws_sns","AWS SNS",{"_path":614,"title":615},"/docs/service-connections/aws_sqs","AWS SQS",{"_path":617,"title":618},"/docs/service-connections/azure","Azure",{"_path":620,"title":621},"/docs/service-connections/gcp_gcs","GCP Cloud Storage",{"_path":623,"title":624},"/docs/service-connections/gcp_pubsub","GCP Pub/Sub",[626],{"_path":627,"title":628},"/docs/webhooks/cron/using-cron-webhooks","Schedule recurring webhooks",[630,633,635,638],{"_path":631,"title":632},"/docs/email","Receive emails as webhooks",{"_path":498,"title":634},"Email webhook payload",{"_path":636,"title":637},"/docs/email/filtering-and-policy","Sender filtering & policy",{"_path":639,"title":640},"/docs/email/cli","Create & poll email addresses from the CLI",[642,645],{"_path":643,"title":644},"/docs/tunnels/demoing-your-website","Demoing your website",{"_path":646,"title":647},"/docs/tunnels/regions","Regions",[649,652,655,658],{"_path":650,"title":651},"/docs/account/account-management","Account management",{"_path":653,"title":654},"/docs/account/mfa","Multi-factor authentication (MFA)",{"_path":656,"title":657},"/docs/account/team","Teams and sub-accounts",{"_path":659,"title":660},"/docs/account/billing-and-subscriptions","Billing & subscriptions",[662,663],{"_path":4,"title":8},{"_path":66,"title":664},"n8n Webhook Trigger (No Public IP)",[666,669,672,675,678,681],{"_path":667,"title":668},"/docs/tutorials/cicd/jenkins-bitbucket","Jenkins and Bitbucket",{"_path":670,"title":671},"/docs/tutorials/cicd/jenkins-github","Jenkins and GitHub",{"_path":673,"title":674},"/docs/tutorials/cicd/jenkins-plugin","Jenkins Plugin",{"_path":676,"title":677},"/docs/tutorials/cicd/kubernetes-operator","Kubernetes Operator",{"_path":679,"title":680},"/docs/tutorials/cicd/terraform-atlantis","Terraform Atlantis",{"_path":682,"title":683},"/docs/tutorials/cicd/webhook-exec","Execute scripts on webhook",[685,688,691,694,697,700,703,706],{"_path":686,"title":687},"/docs/tutorials/email/airtable","Email to Airtable",{"_path":689,"title":690},"/docs/tutorials/email/api","Email to API",{"_path":692,"title":693},"/docs/tutorials/email/database","Email to Database",{"_path":695,"title":696},"/docs/tutorials/email/discord","Email to Discord",{"_path":698,"title":699},"/docs/tutorials/email/google-sheets","Email to Google Sheets",{"_path":701,"title":702},"/docs/tutorials/email/microsoft-teams","Email to Microsoft Teams",{"_path":704,"title":705},"/docs/tutorials/email/notion","Email to Notion",{"_path":707,"title":708},"/docs/tutorials/email/slack","Email to Slack",[710,713,716],{"_path":711,"title":712},"/docs/tutorials/edge/home-assistant","Home Assistant",{"_path":714,"title":715},"/docs/tutorials/edge/javascript-app","JavaScript app",{"_path":717,"title":718},"/docs/tutorials/edge/node-red","Node-RED",[720],{"_path":721,"title":722},"/docs/tutorials/warehouse/bigquery","GCP BigQuery",[724,727],{"_path":725,"title":726},"/docs/tutorials/transform/docker-to-slack","DockerHub webhook to Slack notification",{"_path":728,"title":729},"/docs/tutorials/transform/enrich-webhooks","Enrich webhooks from APIs",[731,734,737,740,743,746,749,752,755,758,760,763,766],{"_path":732,"title":733},"/docs/webhooks/functions/manipulating-json","JSON encoding",{"_path":735,"title":736},"/docs/webhooks/functions/make-http-request","Make HTTP request",{"_path":738,"title":739},"/docs/webhooks/functions/modify-request","Read, write request data",{"_path":741,"title":742},"/docs/webhooks/functions/multipart-form-data","Multipart form to JSON",{"_path":744,"title":745},"/docs/webhooks/functions/url-encoded-data","URL Encoded Form",{"_path":747,"title":748},"/docs/webhooks/functions/working-with-time","Working with time",{"_path":750,"title":751},"/docs/webhooks/functions/send-emails","Sending emails",{"_path":753,"title":754},"/docs/webhooks/functions/crypto-functions","Base64, encryption",{"_path":756,"title":757},"/docs/webhooks/functions/integrate-into-cicd","Integrating into CI/CD",{"_path":759,"title":722},"/docs/webhooks/functions/big-query",{"_path":761,"title":762},"/docs/webhooks/functions/accessing-metadata","Accessing metadata",{"_path":764,"title":765},"/docs/webhooks/functions/response-functions","Response (post-delivery) functions",{"_path":767,"title":768},"/docs/webhooks/functions","Functions",1783169493121]