你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn。
Smtp Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Email server settings. https://grafana.com/docs/grafana/v9.0/setup-grafana/configure-grafana/#smtp
public class Smtp
type Smtp = class
Public Class Smtp
- Inheritance
-
Smtp
Constructors
Smtp() |
Initializes a new instance of Smtp. |
Properties
Enabled |
Enable this to allow Grafana to send email. Default is false. |
FromAddress |
Address used when sending out emails https://pkg.go.dev/net/mail#Address |
FromName |
Name to be used when sending out emails. Default is "Azure Managed Grafana Notification" https://pkg.go.dev/net/mail#Address |
Host |
SMTP server hostname with port, e.g. test.email.net:587. |
Password |
Password of SMTP auth. If the password contains # or ;, then you have to wrap it with triple quotes. |
SkipVerify |
Verify SSL for SMTP server. Default is false https://pkg.go.dev/crypto/tls#Config |
StartTLSPolicy |
The StartTLSPolicy setting of the SMTP configuration https://pkg.go.dev/github.com/go-mail/mail#StartTLSPolicy |
User |
User of SMTP auth. |