github.com/argoproj/argo-cd/v2@v2.10.9/docs/operator-manual/notifications/services/email.md (about) 1 # Email 2 3 ## Parameters 4 5 The Email notification service sends email notifications using SMTP protocol and requires specifying the following settings: 6 7 * `host` - the SMTP server host name 8 * `port` - the SMTP server port 9 * `username` - username 10 * `password` - password 11 * `from` - from email address 12 * `html` - optional bool, true or false 13 * `insecure_skip_verify` - optional bool, true or false 14 15 ## Example 16 17 The following snippet contains sample Gmail service configuration: 18 19 ```yaml 20 apiVersion: v1 21 kind: ConfigMap 22 metadata: 23 name: <config-map-name> 24 data: 25 service.email.gmail: | 26 username: $email-username 27 password: $email-password 28 host: smtp.gmail.com 29 port: 465 30 from: $email-username 31 ``` 32 33 Without authentication: 34 35 ```yaml 36 apiVersion: v1 37 kind: ConfigMap 38 metadata: 39 name: <config-map-name> 40 data: 41 service.email.example: | 42 host: smtp.example.com 43 port: 587 44 from: $email-username 45 ``` 46 47 ## Template 48 49 [Notification templates](../templates.md) support specifying subject for email notifications: 50 51 ```yaml 52 apiVersion: v1 53 kind: ConfigMap 54 metadata: 55 name: <config-map-name> 56 data: 57 template.app-sync-succeeded: | 58 email: 59 subject: Application {{.app.metadata.name}} has been successfully synced. 60 message: | 61 {{if eq .serviceType "slack"}}:white_check_mark:{{end}} Application {{.app.metadata.name}} has been successfully synced at {{.app.status.operationState.finishedAt}}. 62 Sync operation details are available at: {{.context.argocdUrl}}/applications/{{.app.metadata.name}}?operation=true . 63 ```