func NewClient(config *Config) *Client {
	return &Client{
		auth:     smtp.PlainAuth(config.Identity, config.Username, config.Password, config.Host),
		addr:     config.Addr,
		from:     config.From,
		html:     config.HTML,
		subjects: config.Subjects,
	}
}
NewClient return a new mail
package mail
import (
	"bytes"
	"html/template"
	"net/smtp"
	"github.com/ricoberger/go-vue-starter/pkg/static"
)
type Config struct {
	Identity string            `yaml:"identity"`
	Username string            `yaml:"username"`
	Password string            `yaml:"password"`
	Host     string            `yaml:"host"`
	Addr     string            `yaml:"addr"`
	From     string            `yaml:"from"`
	HTML     bool              `yaml:"html"`
	Subjects map[string]string `yaml:"subjects"`
}
type Client struct {
	auth     smtp.Auth
	addr     string
	from     string
	html     bool
	subjects map[string]string
}