Files
golib/mail/recipientType.go
Nicolas JUHEL 2b42aa859d Add Packges:
- smtp : refactor smtp packgage and allow connection context for smtp
- mailer : add package for templating mail (using hermes lib)
- mail : add package to format mal with header to be send to smtp (using lib smple mail)

Add function in package :
- errors : add function to retireve a map of minimal error code and package path of the getMessage function
- version : add function to get root path of package (still existing but not return before this function)
- ioutils : add function to expand bytes.buffer as io.ReadCloser interface
2021-02-15 04:25:59 +01:00

23 lines
301 B
Go

package mail
type recipientType uint8
const (
RecipientTo recipientType = iota
RecipientCC
RecipientBCC
)
func (r recipientType) String() string {
switch r {
case RecipientTo:
return "To"
case RecipientCC:
return "Cc"
case RecipientBCC:
return "Bcc"
}
return RecipientTo.String()
}