Versions in this module Expand all Collapse all v0 v0.6.0 Dec 20, 2022 Changes in this version + func Install(mod string, db *orm.DB) + type Email struct + func New(s *web.Server, prefix orm.Prefix, db *orm.DB, expired time.Duration, ...) *Email + func (e *Email) Delete(tx *orm.Tx, uid int64) error + func (e *Email) Identity(uid int64) (string, bool) + func (e *Email) Invalid(tx *orm.Tx, email, code string) error + func (e *Email) Send(tx *orm.Tx, email, code string) error + func (e *Email) Valid(email, code string) (int64, string, bool) + type SMTP struct + func NewSMTP(subject, addr, from, template string, auth smtp.Auth) *SMTP