SmtpResponse

data class SmtpResponse(val enabled: Boolean? = null, val fromAddress: String? = null, val fromName: String? = null, val host: String? = null, val password: String? = null, val skipVerify: Boolean? = null, val startTLSPolicy: String? = null, val user: String? = null)

Email server settings. https://grafana.com/docs/grafana/v9.0/setup-grafana/configure-grafana/#smtp

Constructors

Link copied to clipboard
constructor(enabled: Boolean? = null, fromAddress: String? = null, fromName: String? = null, host: String? = null, password: String? = null, skipVerify: Boolean? = null, startTLSPolicy: String? = null, user: String? = null)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
val enabled: Boolean? = null

Enable this to allow Grafana to send email. Default is false

Link copied to clipboard
val fromAddress: String? = null

Address used when sending out emails https://pkg.go.dev/net/mail#Address

Link copied to clipboard
val fromName: String? = null

Name to be used when sending out emails. Default is "Azure Managed Grafana Notification" https://pkg.go.dev/net/mail#Address

Link copied to clipboard
val host: String? = null

SMTP server hostname with port, e.g. test.email.net:587

Link copied to clipboard
val password: String? = null

Password of SMTP auth. If the password contains # or ;, then you have to wrap it with triple quotes

Link copied to clipboard
val skipVerify: Boolean? = null

Verify SSL for SMTP server. Default is false https://pkg.go.dev/crypto/tls#Config

Link copied to clipboard
val startTLSPolicy: String? = null

The StartTLSPolicy setting of the SMTP configuration https://pkg.go.dev/github.com/go-mail/mail#StartTLSPolicy

Link copied to clipboard
val user: String? = null

User of SMTP auth