mailer

package
v3.1.29 Latest Latest
Warning

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

Go to latest
Published: Jan 21, 2026 License: MIT Imports: 46 Imported by: 0

Documentation

Index

Constants

View Source
const MailBatchSize = 100 // batch size used in mailIssueCommentBatch

Variables

View Source
var SendAsync = sendAsync

SendAsync send emails asynchronously (make it mockable)

Functions

func LoadedTemplates

func LoadedTemplates() *templates.MailTemplates

func MailActionsTrigger

func MailActionsTrigger(ctx context.Context, sender *user_model.User, repo *repo_model.Repository, run *actions_model.ActionRun) error

func MailMentionsComment

func MailMentionsComment(ctx context.Context, pr *issues_model.PullRequest, c *issues_model.Comment, mentions []*user_model.User) (err error)

MailMentionsComment sends email to users mentioned in a code comment

func MailNewRelease

func MailNewRelease(ctx context.Context, rel *repo_model.Release)

MailNewRelease send new release notify to all repo watchers.

func MailParticipants

func MailParticipants(ctx context.Context, issue *issues_model.Issue, doer *user_model.User, opType activities_model.ActionType, mentions []*user_model.User) error

MailParticipants sends new issue thread created emails to repository watchers and mentioned people.

func MailParticipantsComment

func MailParticipantsComment(ctx context.Context, c *issues_model.Comment, opType activities_model.ActionType, issue *issues_model.Issue, mentions []*user_model.User) error

MailParticipantsComment sends new comment emails to repository watchers and mentioned people.

func MailTeamInvite

func MailTeamInvite(ctx context.Context, inviter *user_model.User, team *org_model.Team, invite *org_model.TeamInvite) error

MailTeamInvite sends team invites

func NewContext

func NewContext(ctx context.Context)

NewContext start mail queue service

func NewNotifier

func NewNotifier() notify_service.Notifier

NewNotifier create a new mailNotifier notifier

func SendActivateAccountMail

func SendActivateAccountMail(locale translation.Locale, u *user_model.User)

SendActivateAccountMail sends an activation mail to the user (new user registration)

func SendActivateEmailMail

func SendActivateEmailMail(u *user_model.User, email string)

SendActivateEmailMail sends confirmation email to confirm new email address

func SendCollaboratorMail

func SendCollaboratorMail(u, doer *user_model.User, repo *repo_model.Repository)

SendCollaboratorMail sends mail notification to new collaborator.

func SendIssueAssignedMail

func SendIssueAssignedMail(ctx context.Context, issue *issues_model.Issue, doer *user_model.User, content string, comment *issues_model.Comment, recipients []*user_model.User) error

SendIssueAssignedMail composes and sends issue assigned email

func SendRegisterNotifyMail

func SendRegisterNotifyMail(u *user_model.User)

SendRegisterNotifyMail triggers a notify e-mail by admin created a account.

func SendRepoTransferNotifyMail

func SendRepoTransferNotifyMail(ctx context.Context, doer, newOwner *user_model.User, repo *repo_model.Repository) error

SendRepoTransferNotifyMail triggers a notification e-mail when a pending repository transfer was created

func SendResetPasswordMail

func SendResetPasswordMail(u *user_model.User)

SendResetPasswordMail sends a password reset mail to the user

func SendRunnerHealthAlert

func SendRunnerHealthAlert(runner *actions_model.ActionRunner, healthStatus *actions_model.RunnerHealthStatus)

SendRunnerHealthAlert sends an email notification about unhealthy runners

func SendTestMail

func SendTestMail(email string) error

SendTestMail sends a test mail

Types

This section is empty.

Source Files

  • mail.go
  • mail_comment.go
  • mail_issue.go
  • mail_issue_common.go
  • mail_release.go
  • mail_repo.go
  • mail_runner_health.go
  • mail_team_invite.go
  • mail_user.go
  • mail_workflow_run.go
  • mailer.go
  • notify.go

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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