1"use strict";(globalThis.webpackChunkmission_control=globalThis.webpackChunkmission_control||[]).push([[3292],{58458(e,n,i){i.r(n),i.d(n,{assets:()=>a,contentTitle:()=>c,default:()=>m,frontMatter:()=>r,metadata:()=>t,toc:()=>l});const t=JSON.parse('{"id":"reference/connections/smtp","title":"SMTP","description":"Connect to SMTP servers for sending email notifications","source":"@site/docs/reference/connections/smtp.mdx","sourceDirName":"reference/connections","slug":"/reference/connections/smtp","permalink":"/docs/reference/connections/smtp","draft":false,"unlisted":false,"editUrl":"https://github.com/flanksource/docs/tree/main/docs/reference/connections/smtp.mdx","tags":[],"version":"current","frontMatter":{"title":"SMTP","description":"Connect to SMTP servers for sending email notifications","sidebar_custom_props":{"icon":"email"}},"sidebar":"reference","previous":{"title":"SMB / CIFS","permalink":"/docs/reference/connections/smb"},"next":{"title":"Telegram","permalink":"/docs/reference/connections/telegram"}}');var s=i(74848),o=i(28453);const r={title:"SMTP",description:"Connect to SMTP servers for sending email notifications",sidebar_custom_props:{icon:"email"}},c=void 0,a={},l=[{value:"Used By",id:"used-by",level:2},{value:"Example",id:"example",level:2},{value:"Next Steps",id:"next-steps",level:2}];function d(e){const n={a:"a",code:"code",h2:"h2",li:"li",p:"p",pre:"pre",ul:"ul",...(0,o.R)(),...e.components},{Fields:i}=n;return i||function(e,n){throw new Error("Expected "+(n?"component":"object")+" `"+e+"` to be defined: you likely forgot to import, pass, or provide it.")}("Fields",!0),(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(n.p,{children:"SMTP connections enable sending email notifications via SMTP servers."}),"\n",(0,s.jsx)(n.h2,{id:"used-by",children:"Used By"}),"\n",(0,s.jsxs)(n.ul,{children:["\n",(0,s.jsxs)(n.li,{children:[(0,s.jsx)(n.a,{href:"/docs/guide/notifications",children:"Notifications"})," - Send email alerts"]}),"\n",(0,s.jsxs)(n.li,{children:[(0,s.jsx)(n.a,{href:"/docs/guide/playbooks/actions/notification",children:"Notification Action"})," - Send emails from playbooks"]}),"\n"]}),"\n",(0,s.jsx)(i,{rows:[{field:"host",scheme:"string",description:"SMTP server hostname",required:!0},{field:"port",scheme:"int",description:"SMTP server port (default: 587)"},{field:"username",scheme:"EnvVar",description:"Username for SMTP authentication"},{field:"password",scheme:"EnvVar",description:"Password for SMTP authentication"},{field:"fromAddress",scheme:"string",description:"Email address to send from",required:!0},{field:"toAddresses",scheme:"string[]",description:"Default recipient email addresses"},{field:"subject",scheme:"string",description:"Default email subject"},{field:"encryption",scheme:"string",anyOf:["None","ExplicitTLS","ImplicitTLS","Auto"],description:"Encryption method (default: Auto)"},{field:"auth",scheme:"string",description:"Authentication method",anyOf:["None","Plain","CRAMMD5","OAuth2"]},{field:"insecureTLS",scheme:"bool",description:"Skip TLS certificate verification"}]}),"\n",(0,s.jsx)(n.h2,{id:"example",children:"Example"}),"\n",(0,s.jsx)(n.pre,{children:(0,s.jsx)(n.code,{className:"language-yaml",metastring:'title="smtp-connection.yaml"',children:"apiVersion: mission-control.flanksource.com/v1\nkind: Connection\nmetadata:\n name: email-alerts\nspec:\n smtp:\n host: smtp.example.com\n port: 587\n username:\n valueFrom:\n secretKeyRef:\n name: smtp-credentials\n key: username\n password:\n valueFrom:\n secretKeyRef:\n name: smtp-credentials\n key: password\n fromAddress: [email protected]\n encryption: Auto\n auth: Plain\n"})}),"\n",(0,s.jsx)(n.h2,{id:"next-steps",children:"Next Steps"}),"\n",(0,s.jsxs)(n.ul,{children:["\n",(0,s.jsxs)(n.li,{children:[(0,s.jsx)(n.a,{href:"/docs/guide/notifications/channels/email",children:"Email Channel Guide"})," - Configure email notifications"]}),"\n"]})]})}function m(e={}){const{wrapper:n}={...(0,o.R)(),...e.components};return n?(0,s.jsx)(n,{...e,children:(0,s.jsx)(d,{...e})}):d(e)}},28453(e,n,i){i.d(n,{R:()=>r,x:()=>c});var t=i(96540);const s={},o=t.createContext(s);function r(e){const n=t.useContext(o);return t.useMemo(function(){return"function"==typeof e?e(n):{...n,...e}},[n,e])}function c(e){let n;return n=e.disableParentContext?"function"==typeof e.components?e.components(s):e.components||s:r(e.components),t.createElement(o.Provider,{value:n},e.children)}}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.