Skip to content

Commit

Permalink
chore: change sender email address
Browse files Browse the repository at this point in the history
  • Loading branch information
Cyberguru1 committed Aug 10, 2024
1 parent 8289e1d commit db9a201
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion services/send/email.go
Original file line number Diff line number Diff line change
Expand Up @@ -112,9 +112,10 @@ func (e *EmailRequest) sendEmailViaSMTP() error {

sender := mailConfig.Username
subject := e.Subject
From := "[email protected]"
recipients := e.To
mime := "\nMIME-version: 1.0;\nContent-Type: text/html; charset=\"UTF-8\";\n\n"
body := []byte(fmt.Sprintf("From: %s\r\nTo: %s\r\n%s%s%s", sender, recipients[0], subject, mime, e.Body))
body := []byte(fmt.Sprintf("From: %s\r\nTo: %s\r\n%s%s%s", From, recipients[0], subject, mime, e.Body))

conn, err := tls.Dial(
"tcp",
Expand Down

0 comments on commit db9a201

Please sign in to comment.