smtp

package
v1.43.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 26, 2023 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ConnectionSecurities = struct {
	NoEncryption     ConnectionSecurity
	OptionalStartTLS ConnectionSecurity
	RequestStartTLS  ConnectionSecurity
	TLS              ConnectionSecurity
}{
	"NO_ENCRYPTION",
	"OPTIONAL_STARTTLS",
	"REQUIRE_STARTTLS",
	"TLS",
}

Functions

This section is empty.

Types

type ConnectionSecurity

type ConnectionSecurity string

type Settings

type Settings struct {
	HostName                       string             `json:"hostName"`                                 // Host name
	Port                           int                `json:"port"`                                     // Integer value of port. Default: `25`
	UserName                       string             `json:"userName"`                                 // User name
	Password                       string             `json:"password"`                                 // Password
	IsPasswordConfigured           bool               `json:"isPasswordConfigured,omitempty"`           // If true, a password has been configured. Default: `false`.
	ConnectionSecurity             ConnectionSecurity `json:"connectionSecurity"`                       // Connection security, possible values: `NO_ENCRYPTION`, `OPTIONAL_STARTTLS`, `REQUIRE_STARTTLS`, `TLS`. Default: `NO_ENCRYPTION`
	SenderEmailAddress             string             `json:"senderEmailAddress"`                       // Sender email address
	AllowFallbackViaMissionControl bool               `json:"allowFallbackViaMissionControl,omitempty"` // If true, we will send e-mails via Mission Control in case of problems with SMTP server.
	UseSmtpServer                  bool               `json:"useSmtpServer,omitempty"`                  // If true, we will send e-mails via SMTP server.
}

The configuration of the user

func (*Settings) MarshalHCL

func (me *Settings) MarshalHCL(properties hcl.Properties) error

func (*Settings) Schema

func (me *Settings) Schema() map[string]*schema.Schema

func (*Settings) UnmarshalHCL

func (me *Settings) UnmarshalHCL(decoder hcl.Decoder) error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL