Documentation
¶
Index ¶
- func SendFromCron() (sawError error)
- func SendKeyExpiredDeleted(userProfileUUID uuid.UUID, email string, fingerprint fpr.Fingerprint) error
- func SendKeyExpiresEmails() error
- func SendTestEmails(to string) error
- func SendVerificationEmails(txn *sql.Tx, publicKey *pgpkey.PgpKey, meta VerificationMetadata) error
- type VerificationMetadata
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 ¶
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 ¶
Click to show internal directories.
Click to hide internal directories.