smtp

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jun 1, 2022 License: GPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Execute

func Execute(subject, message string) error

Execute is to execute the send function & load the access data

func Send

func Send(d Data, a Access) error

Send is to send an email You can send the emails with smtp

Types

type Access

type Access struct {
	Host     string
	Port     string
	Username mail.Address
	Password string
}

Access is to config the smtp access data

type Data

type Data struct {
	Email   mail.Address
	Subject string
	Type    string
	Message string
}

Data is to structure the email data

Jump to

Keyboard shortcuts

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