Nightwatch captures outbound emails sent via Laravel’s mail system, including subject, recipient, and delivery status. This makes it easier to trace email issues without needing to check your mail provider dashboard.
Mail List
The mail page lists the email classes that have been observed in your application, with statistics for the total number of emails sent and the average and p95 for processing time.
P95 shows the performance experienced by your slowest 5% of emails. It
highlights outliers, bottlenecks and inconsistent behavior that average times
hide.
Mail Details
Click on a mail class to view all emails sent for that mailable during the selected time period, including the subject, mail driver, attachment count, and a recipient breakdown (To, CC, and BCC). You may select an instance to view the full trace for that email within the context of its parent execution.
Sampling
There are no direct sampling controls for mail events, they are automatically captured when their parent execution context is sampled.
Filtering
There are a number of different methods to filter mail events.
Filtering All Mail Events
To completely disable the collection of all mail events, set the NIGHTWATCH_IGNORE_MAIL environment variable to true:
NIGHTWATCH_IGNORE_MAIL=true
Filtering Specific Mail Events
You can filter out specific mail events using the Nightwatch::rejectMail() method:
use Laravel\Nightwatch\Facades\Nightwatch;use Laravel\Nightwatch\Records\Mail;Nightwatch::rejectMail(function (Mail $mail) { return str_contains($mail->subject, 'Newsletter');});
Redaction
You can manually redact sensitive information from mail subjects using the redactMail callback:
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"Laravel Nightwatch","colors":{"primary":"#3b82f6","light":"#3b82f6","dark":"#2563eb"},"logo":{"light":"https://mintcdn.com/nightwatch/9bBvZ3prOgiObqKq/logo-dark.svg?fit=max\u0026auto=format\u0026n=9bBvZ3prOgiObqKq\u0026q=85\u0026s=22a17ee54eaa488b56f88d7dc8b31489","dark":"https://mintcdn.com/nightwatch/9bBvZ3prOgiObqKq/logo-dark.svg?fit=max\u0026auto=format\u0026n=9bBvZ3prOgiObqKq\u0026q=85\u0026s=22a17ee54eaa488b56f88d7dc8b31489","href":"https://nightwatch.laravel.com"},"favicon":"https://mintcdn.com/nightwatch/9bBvZ3prOgiObqKq/favicon.svg?fit=max\u0026auto=format\u0026n=9bBvZ3prOgiObqKq\u0026q=85\u0026s=23a7eaf51dcc37590d68007a74d10a16","appearance":{"default":"dark","strict":true},"background":{"color":{"light":"#171717","dark":"#171717"}},"navbar":{"links":[{"href":"mailto:nightwatch@laravel.com","label":"Support"}],"primary":{"type":"button","label":"Dashboard","href":"https://nightwatch.laravel.com"}},"footer":{"socials":{"x":"https://x.com/laravelphp","github":"https://github.com/laravel","discord":"https://discord.com/invite/laravel","linkedin":"https://linkedin.com/company/laravel"}},"seo":{"metatags":{"canonical":"https://nightwatch.laravel.com/docs"}},"fonts":{"heading":{"family":"Inter"},"body":{"family":"Inter"}},"integrations":{"fathom":{"siteId":"LDNWSDLH"}},"contextual":{"options":["copy","chatgpt","claude"],"display":"header"},"styling":{"latex":false},"navigation":{"global":{"anchors":[{"anchor":"Community","icon":"discord","href":"https://discord.com/invite/laravel"}]},"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"nightwatch","hasAudioNarration":false,"actualSubdomain":"nightwatch","customDomains":["nightwatch.laravel.com"],"gitSource":{"type":"github","owner":"laravel","repo":"nightwatch-docs","deployBranch":"main","contentDirectory":"","isPrivate":true,"mountPath":"","label":""},"feedback":{"thumbs":true},"entitlements":{"AI_CHAT":{"status":"DISABLED"},"REMOVE_BRANDING":{"status":"ENABLED"},"CONTEXTUAL_FEEDBACK":{"status":"ENABLED"},"CODE_SNIPPET_FEEDBACK":{"status":"ENABLED"},"WEB_MCP":{"status":"ENABLED"},"NARRATION":{"status":"DISABLED"}},"buildId":"6b069287c90834d233c64adb","clientVersion":"0.0.4342","searchFilterCounts":[{"language":"default","tag":"Events","count":15},{"language":"default","tag":"Event Types","count":10},{"language":"default","tag":"Integrations","count":9},{"language":"default","tag":"Other","count":6},{"language":"default","tag":"Settings","count":4},{"language":"default","tag":"Billing","count":2},{"language":"default","tag":"Get Started","count":2}]},"assistantConfig":{},"basePath":"/docs","hasChatPermissions":false,"hasWebMcpPermissions":true,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-rbac-roles","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"rbac-expansion","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"site-roles","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"full-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"dashboard-inbox","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-dual-write","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"approve-review-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-metadata","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-serve","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"live-agents","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"starter-pricing","enabled":true,"variant":{"name":"control","enabled":true,"payload":{"type":"string","value":"control"},"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"wildcard-email-auth","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"starterQuestions":[],"googleFontsInlined":false},"customCss":[{"filePath":"style.css","content":"h1,h2,h3,h4{font-weight:600!important}.codeblock-dark div:not(:last-child){color:#fafafa}#footer div:nth-of-type(2){display:none}#navbar{a img {\n width: 160px;\n }}table th{text-align:left}"}]}
{"page":{"pagePath":"mail","slug":"/mail","pageMetadata":{"title":"Mail","description":"Outbound emails sent via Laravel's mail system","href":"/mail"},"description":{"compiledSource":"\"use strict\";\nconst {jsx: _jsx} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n p: \"p\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsx(_components.p, {\n children: \"Outbound emails sent via Laravel’s mail system\"\n });\n}\nfunction MDXContent(props = {}) {\n const {wrapper: MDXLayout} = {\n ..._provideComponents(),\n ...props.components\n };\n return MDXLayout ? _jsx(MDXLayout, {\n ...props,\n children: _jsx(_createMdxContent, {\n ...props\n })\n }) : _createMdxContent(props);\n}\nreturn {\n default: MDXContent\n};\n","frontmatter":{},"scope":{}},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx,jsxs:_jsxs}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){const _components={a:`a`,code:`code`,p:`p`,pre:`pre`,span:`span`,..._provideComponents(),...props.components},{CodeBlock,Heading,Tip}=_components;if(!CodeBlock)_missingMdxReference(`CodeBlock`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!Tip)_missingMdxReference(`Tip`,true);return _jsxs(_Fragment,{children:[_jsx(_components.p,{children:`Nightwatch captures outbound emails sent via Laravel’s mail system, including subject, recipient, and delivery status. This makes it easier to trace email issues without needing to check your mail provider dashboard.`}),`\n`,_jsx(Heading,{level:`2`,id:`mail-list`,children:`Mail List`}),`\n`,_jsx(_components.p,{children:`The mail page lists the email classes that have been observed in your application, with statistics for the total number of emails sent and the average and p95 for processing time.`}),`\n`,_jsx(Tip,{children:_jsx(_components.p,{children:`P95 shows the performance experienced by your slowest 5% of emails. It\nhighlights outliers, bottlenecks and inconsistent behavior that average times\nhide.`})}),`\n`,_jsx(Heading,{level:`2`,id:`mail-details`,children:`Mail Details`}),`\n`,_jsx(_components.p,{children:`Click on a mail class to view all emails sent for that mailable during the selected time period, including the subject, mail driver, attachment count, and a recipient breakdown (To, CC, and BCC). You may select an instance to view the full trace for that email within the context of its parent execution.`}),`\n`,_jsx(Heading,{level:`2`,id:`sampling`,children:`Sampling`}),`\n`,_jsxs(_components.p,{children:[`There are no direct sampling controls for mail events, they are automatically captured when their `,_jsx(_components.a,{href:`/events#execution-contexts`,children:`parent execution`}),` context is sampled.`]}),`\n`,_jsx(Heading,{level:`2`,id:`filtering`,children:`Filtering`}),`\n`,_jsx(_components.p,{children:`There are a number of different methods to filter mail events.`}),`\n`,_jsx(Heading,{level:`3`,id:`filtering-all-mail-events`,children:`Filtering All Mail Events`}),`\n`,_jsxs(_components.p,{children:[`To completely disable the collection of all mail events, set the `,_jsx(_components.code,{children:`NIGHTWATCH_IGNORE_MAIL`}),` environment variable to `,_jsx(_components.code,{children:`true`}),`:`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`1`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`NIGHTWATCH_IGNORE_MAIL`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`true`})]}),`\n`]})})}),`\n`,_jsx(Heading,{level:`3`,id:`filtering-specific-mail-events`,children:`Filtering Specific Mail Events`}),`\n`,_jsxs(_components.p,{children:[`You can filter out specific mail events using the `,_jsx(_components.code,{children:`Nightwatch::rejectMail()`}),` method:`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`6`,language:`php`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`php`,children:_jsxs(_components.code,{language:`php`,numberOfLines:`6`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`use`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#D4D4D4`},children:` Laravel\\\\Nightwatch\\\\Facades\\\\`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4EC9B0`},children:`Nightwatch`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`;`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`use`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#D4D4D4`},children:` Laravel\\\\Nightwatch\\\\Records\\\\`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4EC9B0`},children:`Mail`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`;`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4EC9B0`},children:`Nightwatch`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`::`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`rejectMail`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`function`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` (`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4EC9B0`},children:`Mail`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` $mail`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`) {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` return`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:` str_contains`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`$mail`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`->`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`subject`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`'Newsletter'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`);`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`});`})}),`\n`]})})}),`\n`,_jsx(Heading,{level:`2`,id:`redaction`,children:`Redaction`}),`\n`,_jsxs(_components.p,{children:[`You can manually redact sensitive information from mail subjects using the `,_jsx(_components.code,{children:`redactMail`}),` callback:`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`6`,language:`php`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`php`,children:_jsxs(_components.code,{language:`php`,numberOfLines:`6`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`use`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#D4D4D4`},children:` Laravel\\\\Nightwatch\\\\Facades\\\\`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4EC9B0`},children:`Nightwatch`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`;`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`use`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#D4D4D4`},children:` Laravel\\\\Nightwatch\\\\Records\\\\`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4EC9B0`},children:`Mail`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`;`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4EC9B0`},children:`Nightwatch`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`::`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`redactMail`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`function`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` (`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4EC9B0`},children:`Mail`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` $mail`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`) {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` $mail`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`->`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`subject`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:` str_replace`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`'secret'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`'***'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`$mail`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`->`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`subject`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`);`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`});`})}),`\n`]})})})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent};function _missingMdxReference(id,component){throw new Error(`Expected `+(component?`component`:`object`)+\" `\"+id+\"` to be defined: you likely forgot to import, pass, or provide it.\")}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"title":"Mail","description":"Outbound emails sent via Laravel's mail system","href":"/mail"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[{"title":"Mail List","slug":"mail-list","depth":2,"children":[]},{"title":"Mail Details","slug":"mail-details","depth":2,"children":[]},{"title":"Sampling","slug":"sampling","depth":2,"children":[]},{"title":"Filtering","slug":"filtering","depth":2,"children":[{"title":"Filtering All Mail Events","slug":"filtering-all-mail-events","depth":3,"children":[]},{"title":"Filtering Specific Mail Events","slug":"filtering-specific-mail-events","depth":3,"children":[]}]},{"title":"Redaction","slug":"redaction","depth":2,"children":[]}],"codeExamples":{}},"jsLinks":["/docs/_mintlify/custom/nightwatch/e2823a5a4d8d42ae/plain.js"],"subdomain":"nightwatch","siteName":"Laravel Nightwatch","title":"Mail - Laravel Nightwatch","contextualStarterQuestions":[],"navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-02-23T05:27:41.806Z","originalFileLocation":"mail.mdx"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=\"dark\";if(!p){try{p=localStorage.getItem(\"isDarkMode\")}catch(e){}if(p==='true')p='dark';else if(p==='false')p='light';if(p!=='light'\u0026\u0026p!=='dark'\u0026\u0026p!=='system')p=\"dark\"}var r=p==='system'?(matchMedia(\"(prefers-color-scheme: dark)\").matches?'dark':'light'):p;d.classList.remove(r==='dark'?'light':'dark');d.classList.add(r);d.setAttribute(\"data-theme-preference\",p)})();\u003c/script>\u003cmeta data-mint-head name=\"description\" content=\"Outbound emails sent via Laravel\u0026#x27;s mail system\">\u003cmeta data-mint-head name=\"application-name\" content=\"Laravel Nightwatch\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/docs/mintlify-assets/_mintlify/favicons/nightwatch/KWIZbEygUC0uDxJv/_generated/favicon/android-chrome-192x192.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"apple-touch-icon\" type=\"image/png\" sizes=\"180x180\" href=\"/docs/mintlify-assets/_mintlify/favicons/nightwatch/KWIZbEygUC0uDxJv/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/docs/mintlify-assets/_mintlify/favicons/nightwatch/KWIZbEygUC0uDxJv/_generated/favicon/favicon-16x16.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/docs/mintlify-assets/_mintlify/favicons/nightwatch/KWIZbEygUC0uDxJv/_generated/favicon/favicon-32x32.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/docs/mintlify-assets/_mintlify/favicons/nightwatch/KWIZbEygUC0uDxJv/_generated/favicon/favicon.ico\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/docs/mintlify-assets/_mintlify/favicons/nightwatch/KWIZbEygUC0uDxJv/_generated/favicon-dark/android-chrome-192x192.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/docs/mintlify-assets/_mintlify/favicons/nightwatch/KWIZbEygUC0uDxJv/_generated/favicon-dark/favicon-16x16.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/docs/mintlify-assets/_mintlify/favicons/nightwatch/KWIZbEygUC0uDxJv/_generated/favicon-dark/favicon-32x32.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/docs/mintlify-assets/_mintlify/favicons/nightwatch/KWIZbEygUC0uDxJv/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Mail - Laravel Nightwatch\">\u003cmeta data-mint-head property=\"og:description\" content=\"Outbound emails sent via Laravel\u0026#x27;s mail system\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Laravel Nightwatch\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://nightwatch.laravel.com/docs/mail\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://nightwatch.mintlify.site/docs/_mintlify/api/og/v2?division=Event+Types\u0026amp;title=Mail\u0026amp;description=Outbound+emails+sent+via+Laravel%27s+mail+system\u0026amp;theme=483567dc5b14527577f90f1f\u0026amp;signature=8794c6fb377debfeea7719be37dff49b20079345035fd4de75304c459cd74b27\">\u003cmeta data-mint-head property=\"og:image:width\" content=\"1200\">\u003cmeta data-mint-head property=\"og:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"twitter:card\" content=\"summary_large_image\">\u003cmeta data-mint-head name=\"twitter:title\" content=\"Mail - Laravel Nightwatch\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Outbound emails sent via Laravel\u0026#x27;s mail system\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://nightwatch.mintlify.site/docs/_mintlify/api/og/v2?division=Event+Types\u0026amp;title=Mail\u0026amp;description=Outbound+emails+sent+via+Laravel%27s+mail+system\u0026amp;theme=483567dc5b14527577f90f1f\u0026amp;signature=8794c6fb377debfeea7719be37dff49b20079345035fd4de75304c459cd74b27\">\u003cmeta data-mint-head name=\"twitter:image:width\" content=\"1200\">\u003cmeta data-mint-head name=\"twitter:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"msapplication-config\" content=\"/docs/mintlify-assets/_mintlify/favicons/nightwatch/KWIZbEygUC0uDxJv/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Laravel Nightwatch\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#3b82f6\">\u003clink data-mint-head rel=\"canonical\" href=\"https://nightwatch.laravel.com/docs/mail\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/docs/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/docs/mail.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://nightwatch.laravel.com/#organization\",\"name\":\"Laravel Nightwatch\",\"url\":\"https://nightwatch.laravel.com\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/nightwatch/9bBvZ3prOgiObqKq/logo-dark.svg?fit=max\u0026auto=format\u0026n=9bBvZ3prOgiObqKq\u0026q=85\u0026s=22a17ee54eaa488b56f88d7dc8b31489\"}},{\"@type\":\"WebSite\",\"@id\":\"https://nightwatch.laravel.com/docs#website\",\"name\":\"Laravel Nightwatch\",\"url\":\"https://nightwatch.laravel.com/docs\",\"publisher\":{\"@id\":\"https://nightwatch.laravel.com/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://nightwatch.laravel.com/docs/mail#webpage\",\"url\":\"https://nightwatch.laravel.com/docs/mail\",\"name\":\"Mail\",\"description\":\"Outbound emails sent via Laravel's mail system\",\"dateModified\":\"2026-02-23T05:27:41.806Z\",\"isPartOf\":{\"@id\":\"https://nightwatch.laravel.com/docs#website\"},\"breadcrumb\":{\"@id\":\"https://nightwatch.laravel.com/docs/mail#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://nightwatch.laravel.com/docs/mail#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Events\",\"item\":\"https://nightwatch.laravel.com/docs/events\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Event Types\",\"item\":\"https://nightwatch.laravel.com/docs/requests\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Mail\",\"item\":\"https://nightwatch.laravel.com/docs/mail\"}]},{\"@type\":[\"Article\",\"TechArticle\"],\"@id\":\"https://nightwatch.laravel.com/docs/mail#article\",\"headline\":\"Mail\",\"name\":\"Mail\",\"description\":\"Outbound emails sent via Laravel's mail system\",\"url\":\"https://nightwatch.laravel.com/docs/mail\",\"mainEntityOfPage\":{\"@id\":\"https://nightwatch.laravel.com/docs/mail#webpage\"},\"dateModified\":\"2026-02-23T05:27:41.806Z\",\"publisher\":{\"@id\":\"https://nightwatch.laravel.com/#organization\"},\"isPartOf\":{\"@id\":\"https://nightwatch.laravel.com/docs#website\"}}]}\u003c/script>","agentPointerHref":"/docs/mail.md","siteName":"Laravel Nightwatch","nav":{"global":{"anchors":[{"anchor":"Community","icon":"discord","href":"https://discord.com/invite/laravel"}]},"groups":[{"group":"Get Started","pages":[{"title":"Start Guide","href":"/start-guide"},{"title":"Requirements","href":"/requirements"}]},{"group":"Events","pages":[{"title":"Overview","href":"/events"},{"title":"Filtering","href":"/filtering"},{"title":"Context","href":"/context"},{"group":"Event Types","pages":[{"title":"Requests","href":"/requests"},{"title":"Queries","href":"/queries"},{"title":"Jobs","href":"/jobs"},{"title":"Scheduled Tasks","href":"/scheduled-tasks"},{"title":"Commands","href":"/commands"},{"title":"Outgoing Requests","href":"/outgoing-requests"},{"title":"Cache","description":"Interactions with Laravel's Cache layer","href":"/cache"},{"title":"Mail","href":"/mail"},{"title":"Notifications","description":"Notifications sent via Laravel's notification system","href":"/notifications"},{"title":"Exceptions","href":"/exceptions"}]},{"title":"Logs","href":"/logs"},{"title":"Users","href":"/user"}]},{"group":"Settings","pages":[{"title":"Account","href":"/account"},{"title":"Organizations","href":"/organizations"},{"group":"Billing","expanded":false,"pages":[{"title":"Subscriptions","href":"/subscriptions"},{"title":"Additional Events","href":"/additional-events"}]}]},{"group":"Integrations","pages":[{"title":"Laravel Cloud","href":"/guides/cloud"},{"title":"Laravel Forge","href":"/guides/forge"},{"title":"Laravel Vapor","href":"/guides/vapor"},{"title":"Docker","href":"/guides/docker"},{"title":"Other Providers","href":"/guides/other-providers"},{"title":"Slack","href":"/slack"},{"title":"Linear","href":"/linear"},{"title":"MCP Server","href":"/mcp-server"},{"title":"Webhooks","href":"/webhooks"}]},{"group":"Other","pages":[{"title":"Changelog","href":"/changelog"},{"title":"Environment Variables","href":"/environment-variables"},{"title":"Support","mode":"wide","href":"/support"},{"title":"Compliance","mode":"wide","href":"/compliance"},{"title":"Report Abuse","sidebarTitle":"Abuse","href":"/abuse"},{"title":"FAQs","sidebarTitle":"FAQs","href":"/guides/faqs"}]}]},"basePath":"","title":"Mail - Laravel Nightwatch","deploymentId":"dpl_HkhFaM7Z4J8aYo89NEttjgSHLi43","buildId":"dpl_HkhFaM7Z4J8aYo89NEttjgSHLi43","dynamics":[],"chunks":[]}