Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Attachment ¶
type Attachment struct {
// contains filtered or unexported fields
}
type MailServerConfig ¶
func NewMailServerConfig ¶
func NewMailServerConfig(username, password, host, port string) *MailServerConfig
type O365Client ¶
type O365Client struct {
// contains filtered or unexported fields
}
func NewMailClient ¶
func NewMailClient(cfgMail *MailServerConfig) *O365Client
func (*O365Client) AddAttachment ¶
func (oc *O365Client) AddAttachment(filename string)
func (*O365Client) AddBody ¶
func (oc *O365Client) AddBody(content string)
func (*O365Client) AddFrom ¶
func (oc *O365Client) AddFrom(fromAddress string)
func (*O365Client) AddSubject ¶
func (oc *O365Client) AddSubject(subject string)
func (*O365Client) AddTo ¶
func (oc *O365Client) AddTo(toAdd string)
func (*O365Client) Send ¶
func (oc *O365Client) Send() error
Click to show internal directories.
Click to hide internal directories.