package smtp import ( "fmt" "io" "io/ioutil" "log" ) // type Session implements the User interface for emersion/go-smtp type Session struct { ID uint64 AccountName string ServiceName string } func (s *Session) Send(from string, to []string, r io.Reader) error { data, err := ioutil.ReadAll(r) if err != nil { return err } log.Printf("%s session %d for %s: from=%s, to=%s, r=<