MCPcopy Create free account
hub / github.com/gogs/gogs / NewMessage

Function NewMessage

internal/email/message.go:63–65  ·  view source on GitHub ↗

NewMessage creates new mail message object with default From header.

(to []string, subject, body string)

Source from the content-addressed store, hash-verified

61
62// NewMessage creates new mail message object with default From header.
63func NewMessage(to []string, subject, body string) *Message {
64 return NewMessageFrom(to, conf.Email.From, subject, body)
65}
66
67type loginAuth struct {
68 username, password string

Callers 5

SendTestMailFunction · 0.85
SendUserMailFunction · 0.85
SendActivateEmailMailFunction · 0.85
SendRegisterNotifyMailFunction · 0.85
SendCollaboratorMailFunction · 0.85

Calls 1

NewMessageFromFunction · 0.85

Tested by

no test coverage detected