To send the actual mail with sendmail, i have stolen the code from go-mail[0] and removed everything i did not need. This is because there is no Go package to send email in Debian 12, and this was easier than to build the DEB for go-mail. Once i have the time…. [0]: https://go-mail.dev/
19 lines
275 B
Go
19 lines
275 B
Go
// SPDX-FileCopyrightText: 2022-2023 The go-mail Authors
|
|
//
|
|
// SPDX-License-Identifier: MIT
|
|
|
|
package mail
|
|
|
|
import (
|
|
"io"
|
|
)
|
|
|
|
// Part is a part of the Msg
|
|
type Part struct {
|
|
ctype ContentType
|
|
cset Charset
|
|
enc Encoding
|
|
del bool
|
|
w func(io.Writer) (int64, error)
|
|
}
|