smtp

package
v2.4.3 Latest Latest
Warning

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

Go to latest
Published: Jul 1, 2023 License: MIT Imports: 6 Imported by: 0

Documentation

Overview

Package smtp is used to be able to send an email via smtp.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Execute

func Execute(headline, message string)

Execute is to execute the send function & load all configuration data

func SendEmail

func SendEmail(d Data, a Access) error

SendEmail is to send an email. You can send the emails with smtp & add attachment files

Types

type Access

type Access struct {
	Host     string
	Port     int
	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