ms

package
v0.11.3 Latest Latest
Warning

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

Go to latest
Published: Apr 12, 2024 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Addr

type Addr struct {
	Address string `json:"address"`
}

type AzureAuthConfig

type AzureAuthConfig struct {
	Sender         string
	Tenant         string
	ClientId       string
	Scope          string
	Certificate    []*x509.Certificate
	CertificateKey crypto.PrivateKey
}

type AzureGraphProvider

type AzureGraphProvider struct {
	Config AzureAuthConfig
}

func New

func New(config string) (p *AzureGraphProvider, err error)

func (*AzureGraphProvider) Send

func (h *AzureGraphProvider) Send(subject string, body string, receivers ...string) (err error)

type Message

type Message struct {
	Subject      string            `json:"subject"`
	Body         MessageBody       `json:"body"`
	ToRecipients []MessageReceiver `json:"toRecipients"`
}

type MessageBody

type MessageBody struct {
	ContentType string `json:"contentType,omitempty"`
	Content     string `json:"content,omitempty"`
}

type MessageReceiver

type MessageReceiver struct {
	EmailAddress Addr `json:"emailAddress"`
}

type MessageWrapper

type MessageWrapper struct {
	Message         Message `json:"message"`
	SaveToSentItems string  `json:"saveToSentItems"`
}

func BuildMessage

func BuildMessage(subject string, body string, receivers ...string) (m MessageWrapper, err error)

Jump to

Keyboard shortcuts

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