emailservice

package
v0.0.0-...-bef4ad1 Latest Latest
Warning

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

Go to latest
Published: Oct 28, 2022 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func QueueEmail

func QueueEmail(email *Mo2Email, remoteAddr string) (err *mo2errors.Mo2Errors)

QueueEmail add email to send queue

func SendEmail

func SendEmail(mail *Mo2Email, senderAddr string) (err *mo2errors.Mo2Errors)

SendEmail can send raw email to receivers

func SetFrequencyLimit

func SetFrequencyLimit(seconds int64, limit int64, blocksec int)

SetFrequencyLimit set shortest resend time

Types

type Mo2Email

type Mo2Email struct {
	Content   string
	Receivers []string
	Subject   string
}

Mo2Email struct for send a mail

func InvitationMessage

func InvitationMessage(url, groupname string, receivers []string) *Mo2Email

InvitationMessage build email body for invite friends

func VerifyEmailMessage

func VerifyEmailMessage(url string, name string, receivers []string) *Mo2Email

VerifyEmailMessage build email body for verify email

Jump to

Keyboard shortcuts

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