(from string, _ *smtp.MailOptions)
| 138 | } |
| 139 | |
| 140 | func (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 | |
| 152 | func (s *Session) Rcpt(to string, _ *smtp.RcptOptions) error { |
| 153 | s.backend.mu.Lock() |