WIP: Something is going on

This commit is contained in:
2024-03-21 18:39:32 +01:00
parent 58c1b91916
commit 782e762019
7 changed files with 98 additions and 102 deletions

View File

@ -5,13 +5,13 @@ import (
)
type EmailConf struct {
From string
From string
Password string
SmtpHost string
SmtpPort string
}
func (e *EmailConf) SendEmail (to string, message string )error {
func (e *EmailConf) SendEmail(to string, message string) error {
messageByte := []byte(message)
auth := smtp.PlainAuth("", e.From, e.Password, e.SmtpHost)
@ -19,4 +19,4 @@ func (e *EmailConf) SendEmail (to string, message string )error {
return err
}
return nil
}
}