Dela via


Smtp Class

Definition

public class Smtp : System.ClientModel.Primitives.IJsonModel<Azure.ResourceManager.Grafana.Models.Smtp>, System.ClientModel.Primitives.IPersistableModel<Azure.ResourceManager.Grafana.Models.Smtp>
public class Smtp
type Smtp = class
    interface IJsonModel<Smtp>
    interface IPersistableModel<Smtp>
type Smtp = class
Public Class Smtp
Implements IJsonModel(Of Smtp), IPersistableModel(Of Smtp)
Public Class Smtp
Inheritance
Smtp
Implements

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.

Methods

JsonModelWriteCore(Utf8JsonWriter, ModelReaderWriterOptions)

Explicit Interface Implementations

IJsonModel<Smtp>.Create(Utf8JsonReader, ModelReaderWriterOptions)

Reads one JSON value (including objects or arrays) from the provided reader and converts it to a model.

IJsonModel<Smtp>.Write(Utf8JsonWriter, ModelReaderWriterOptions)

Writes the model to the provided Utf8JsonWriter.

IPersistableModel<Smtp>.Create(BinaryData, ModelReaderWriterOptions)

Converts the provided BinaryData into a model.

IPersistableModel<Smtp>.GetFormatFromOptions(ModelReaderWriterOptions)

Gets the data interchange format (JSON, Xml, etc) that the model uses when communicating with the service.

IPersistableModel<Smtp>.Write(ModelReaderWriterOptions)

Writes the model into a BinaryData.

Applies to