utils

package
v0.0.0-...-1084665 Latest Latest
Warning

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

Go to latest
Published: Mar 6, 2020 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var SendgridAPIKey string

SendgridAPIKey stores the token to ensure a valid connection to the sendgrid API

Functions

func SendMail

func SendMail(fromName, fromEmail, subject, toName, toEmail, contentType, content string) (*rest.Response, error)

SendMail is used to send a mail through the sendgrid API

func ValidateHost

func ValidateHost(host string) (err error)

ValidateHost is used to check if an email is valid by checking MX records ++

Types

This section is empty.

Jump to

Keyboard shortcuts

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