easysmtp

package module
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: May 19, 2025 License: BSD-3-Clause Imports: 6 Imported by: 0

README

easysmtp

easysmtp is a lightweight wrapper for Go's standard net/smtp package.

It aims to provide the simplest and most intuitive interface for sending emails in Go.

Usage

Send()

Send() is basic func to send mail

func Send(config conf.Config) (err error)

example


Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func EasySend

func EasySend(msg string) (err error)

func Gmail

func Gmail(recipient string, cc []string, subject string, msg string) (err error)

func Outlook

func Outlook(recipient string, cc []string, msg string, subject string) (err error)

func QQFoxmail

func QQFoxmail(recipient string, cc []string, msg string, subject string) (err error)

func Send

func Send(config Config) (err error)

func SendMail

func SendMail(recipient string, cc []string, subject string, msg string) (err error)

Types

type Config

type Config struct {
	SmtpServer string
	Sender     string
	Name       string
	Passwd     string
	Recipient  string
	CC         []string
	Subject    string
	Msg        string
	EnableHTML bool
}

Directories

Path Synopsis
common

Jump to

Keyboard shortcuts

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