WIP: Something is going on
This commit is contained in:
@ -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
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user