libsendgrid

package
v0.0.0-...-9c6dc8e Latest Latest
Warning

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

Go to latest
Published: Mar 7, 2023 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GridEmail

type GridEmail struct {
	FromAddr string
	FromName string
	ToAddr   string
	Subject  string
	TextBody string
	HTML     string
}

GridEmail contains basic email data to, from, etc. and can be easily extended

func NewGridEmail

func NewGridEmail(from, to, subject, text, html string) (GridEmail, error)

NewGridEmail provides a GridEmail struct for sending

func (*GridEmail) Send

func (email *GridEmail) Send() error

Send reciever function calls sendgrid API for a transactional email

Jump to

Keyboard shortcuts

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