This is the main dovel repository, it has the Go code to run dovel SMTP server.
Author: blmayer (bleemayer@gmail.com)
Date: Wed Sep 13 13:50:33 2023 -0300
Parent: 1b48b61
Removed deprecated function
commit f24608b2c013ba1a69d4318f96681f2e3f2bc139 Author: blmayer <bleemayer@gmail.com> Date: Wed Sep 13 13:50:33 2023 -0300 Removed deprecated function diff --git a/cmd/dovel/backend.go b/cmd/dovel/backend.go index b18e60d..3da1372 100644 --- a/cmd/dovel/backend.go +++ b/cmd/dovel/backend.go @@ -5,7 +5,6 @@ import ( "bytes" "fmt" "io" - "io/ioutil" "net" "net/mail" "net/textproto" @@ -145,7 +144,7 @@ func (s *Session) Send(from string, tos []string, raw io.Reader) error { return err } - body, err := ioutil.ReadAll(email.Body) + body, err := io.ReadAll(email.Body) if err != nil { return err }