MCPcopy Index your code
hub / github.com/coder/coder / Mail

Method Mail

coderd/notifications/dispatch/smtptest/server.go:140–150  ·  view source on GitHub ↗
(from string, _ *smtp.MailOptions)

Source from the content-addressed store, hash-verified

138}
139
140func (s *Session) Mail(from string, _ *smtp.MailOptions) error {
141 s.backend.mu.Lock()
142 defer s.backend.mu.Unlock()
143
144 if s.backend.lastMsg == nil {
145 s.backend.lastMsg = &Message{}
146 }
147
148 s.backend.lastMsg.From = from
149 return nil
150}
151
152func (s *Session) Rcpt(to string, _ *smtp.RcptOptions) error {
153 s.backend.mu.Lock()

Callers 1

dispatchMethod · 0.80

Calls 2

LockMethod · 0.45
UnlockMethod · 0.45

Tested by

no test coverage detected