email

package
v0.0.0-...-cafed51 Latest Latest
Warning

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

Go to latest
Published: May 17, 2019 License: AGPL-3.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SendFromCron

func SendFromCron() (sawError error)

SendFromCron is periodically called from cron, figures out which it needs to send, sends them, and records they've been sent in the datastore.

func SendKeyExpiredDeleted

func SendKeyExpiredDeleted(
	userProfileUUID uuid.UUID,
	email string,
	fingerprint fpr.Fingerprint) error

SendKeyExpiredDeleted sends an email to the given address informing them that their key expired and was deleted.

func SendKeyExpiresEmails

func SendKeyExpiresEmails() error

SendKeyExpiresEmails sends expiry reminders for keys expiring in 14, 7, 3 days

func SendTestEmails

func SendTestEmails(to string) error

SendTestEmails sends a plaintext and an HTML email to the given to address.

func SendVerificationEmails

func SendVerificationEmails(
	txn *sql.Tx, publicKey *pgpkey.PgpKey, meta VerificationMetadata) error

SendVerificationEmails iterates through the email addresses on the given key and works out whether to send each one a verification email. If so, it renders and sends the verification email, and records a new verification in the database.

Types

type VerificationMetadata

type VerificationMetadata struct {
	RequestUserAgent string
	RequestIpAddress string
	RequestTime      time.Time
}

Jump to

Keyboard shortcuts

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