// NewMailer return new mailer service.
NewMailer return new mailer service.
// NewMailer return new mailer service .
func NewMailer(config *config.Mailer) (mailer MailerInterface) {
	dialer := gomail.NewDialer(config.Host, config.Port, config.Username, config.Password)
	dialer.TLSConfig = &tls.Config{InsecureSkipVerify: config.InsecureSkipVerify}
	mailer = &Mailer{config.ReplyTo, config.From, dialer}
	return
}
func NewMailer ( config * config . Mailer ) ( mailer MailerInterface ) { dialer := gomail . NewDialer ( config . Host , config . Port , config . Username , config . Password ) dialer . TLSConfig = & tls . Config { InsecureSkipVerify : config . InsecureSkipVerify } mailer = & Mailer { config . ReplyTo , config . From , dialer } return }
NewMailer return new mailer service.
NewMailer return new mailer service .