import "code.gitea.io/gitea/services/mailer"
mail.go mail_comment.go mail_issue.go mail_release.go mailer.go
Sender sender for sending mail synchronously
InitMailRender initializes the mail renderer
LoginAuth SMTP AUTH LOGIN Auth Handler
func MailMentionsComment(pr *models.PullRequest, c *models.Comment, mentions []*models.User) (err error)
MailMentionsComment sends email to users mentioned in a code comment
MailNewRelease send new release notify to all all repo watchers.
func MailParticipants(issue *models.Issue, doer *models.User, opType models.ActionType, mentions []*models.User) error
MailParticipants sends new issue thread created emails to repository watchers and mentioned people.
func MailParticipantsComment(c *models.Comment, opType models.ActionType, issue *models.Issue, mentions []*models.User) error
MailParticipantsComment sends new comment emails to repository watchers and mentioned people.
func NewContext()
NewContext start mail queue service
SendActivateAccountMail sends an activation mail to the user (new user registration)
SendActivateEmailMail sends confirmation email to confirm new email address
SendAsync send mail asynchronously
SendAsyncs send mails asynchronously
func SendCollaboratorMail(u, doer *models.User, repo *models.Repository)
SendCollaboratorMail sends mail notification to new collaborator.
func SendIssueAssignedMail(issue *models.Issue, doer *models.User, content string, comment *models.Comment, tos []string)
SendIssueAssignedMail composes and sends issue assigned email
SendRegisterNotifyMail triggers a notify e-mail by admin created a account.
SendResetPasswordMail sends a password reset mail to the user
SendTestMail sends a test mail
SendUserMail sends a mail to the user
Locale represents an interface to translation
type Message struct { Info string // Message information for log purpose. FromAddress string FromDisplayName string To []string Subject string Date time.Time Body string Headers map[string][]string }
Message mail body and log info
NewMessage creates new mail message object with default From header.
NewMessageFrom creates new mail message object with custom From header.
SetHeader adds additional headers to a message
ToMessage converts a Message to gomail.Message
Package mailer imports 28 packages (graph) and is imported by 39 packages. Updated 2021-01-22. Refresh now. Tools for package owners.