domains

package
v0.0.0-...-49fb6b5 Latest Latest
Warning

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

Go to latest
Published: Dec 24, 2021 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SendEmail

func SendEmail(to, subject, message string) error

SendEmail sends email

func SendEmailFromAWS

func SendEmailFromAWS(to, subject, message string)

SendEmailFromAWS not used currently. But can be used to send emails directly from aws server

Types

type Email

type Email struct {
	ID      primitive.ObjectID `bson:"_id,omitempty" json:"id,omitempty"`
	To      string             `bson:"to" json:"to"`
	Subject string             `bson:"subject" json:"subject"`
	Message string             `bson:"message" json:"message"`
	Created time.Time          `bson:"created" json:"created"`
}

func CreateEmail

func CreateEmail(db *mongo.Database, c Email) (*Email, error)

func GetAllEmails

func GetAllEmails(db *mongo.Database) ([]Email, error)

Jump to

Keyboard shortcuts

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