hxmail

package module
v0.0.0-...-110437c Latest Latest
Warning

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

Go to latest
Published: Nov 6, 2022 License: GPL-3.0 Imports: 8 Imported by: 0

README

hxmail

Email client library for Go

The hxmail package currently supports the following:

installation
go get github.com/herux/hxmail
Examples,

tested using smtp.office365.com :

email := hxmail.NewHxMail(host, 587, username, password)
email.To(to)
email.Subject("test hxmail")
email.SendMail()

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type HxAttachment

type HxAttachment struct {
}

type HxHeader

type HxHeader struct {
}

type HxMail

type HxMail struct {
	// contains filtered or unexported fields
}

func NewHxMail

func NewHxMail(server string, port int, username, password string) *HxMail

func (*HxMail) AddAttachment

func (m *HxMail) AddAttachment(file HxAttachment)

func (*HxMail) Bcc

func (m *HxMail) Bcc(bcc string)

func (*HxMail) Cc

func (m *HxMail) Cc(cc string)

func (*HxMail) From

func (m *HxMail) From(from, name string)

func (*HxMail) ReplyTo

func (m *HxMail) ReplyTo(replyto string)

func (*HxMail) SendMail

func (m *HxMail) SendMail() error

func (*HxMail) Subject

func (m *HxMail) Subject(subject string)

func (*HxMail) To

func (m *HxMail) To(to string)

type HxMailSender

type HxMailSender struct {
	// contains filtered or unexported fields
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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