email

package
v0.0.0 Latest Latest
Warning

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

Go to latest
Published: Oct 11, 2024 License: GPL-3.0 Imports: 2 Imported by: 0

Documentation

Overview

Package email provides utility functions for sending emails.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewSMTPClient

func NewSMTPClient(host string, port int, username string, password string) *gomail.Dialer

Types

type Client

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

func (*Client) SendEmail

func (c *Client) SendEmail(email *Email) error

type Email

type Email struct {
	Subject     string
	ContentType string
	Body        string
	FromAddress string
	FromName    string
	ToAddresses []string
	Cc          []string
	Bcc         []string
}

Jump to

Keyboard shortcuts

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