Versions in this module Expand all Collapse all v0 v0.19.4 May 24, 2023 Changes in this version + const MailBatchSize + var Sender gomail.Sender + func LoginAuth(username, password string) smtp.Auth + func MailMentionsComment(ctx context.Context, pr *issues_model.PullRequest, c *issues_model.Comment, ...) (err error) + func MailNewRelease(ctx context.Context, rel *repo_model.Release) + func MailParticipants(ctx context.Context, issue *issues_model.Issue, doer *user_model.User, ...) error + func MailParticipantsComment(ctx context.Context, c *issues_model.Comment, ...) error + func MailTeamInvite(ctx context.Context, inviter *user_model.User, team *org_model.Team, ...) error + func NewContext(ctx context.Context) + func NtlmAuth(username, password string) smtp.Auth + func SendActivateAccountMail(locale translation.Locale, u *user_model.User) + func SendActivateEmailMail(u *user_model.User, email *user_model.EmailAddress) + func SendAsync(msg *Message) + func SendAsyncs(msgs []*Message) + func SendCollaboratorMail(u, doer *user_model.User, repo *repo_model.Repository) + func SendIssueAssignedMail(ctx context.Context, issue *issues_model.Issue, doer *user_model.User, ...) error + func SendRegisterNotifyMail(u *user_model.User) + func SendRepoTransferNotifyMail(ctx context.Context, doer, newOwner *user_model.User, ...) error + func SendResetPasswordMail(u *user_model.User) + func SendTestMail(email string) error + type Message struct + Body string + Date time.Time + FromAddress string + FromDisplayName string + Headers map[string][]string + Info string + ReplyTo string + Subject string + To string + func NewMessage(to, subject, body string) *Message + func NewMessageFrom(to, fromDisplayName, fromAddress, subject, body string) *Message + func (m *Message) SetHeader(field string, value ...string) + func (m *Message) ToMessage() *gomail.Message