[#75] added option to test s3 connection and send test emails

This commit is contained in:
Gani Georgiev
2022-08-21 14:30:36 +03:00
parent 3f4f4cf031
commit 587cfc335c
49 changed files with 1539 additions and 838 deletions
+2 -2
View File
@@ -26,7 +26,7 @@ func (m *Sendmail) Send(
fromEmail mail.Address,
toEmail mail.Address,
subject string,
htmlBody string,
htmlContent string,
attachments map[string]io.Reader,
) error {
headers := make(http.Header)
@@ -50,7 +50,7 @@ func (m *Sendmail) Send(
if _, err := buffer.Write([]byte("\r\n")); err != nil {
return err
}
if _, err := buffer.Write([]byte(htmlBody)); err != nil {
if _, err := buffer.Write([]byte(htmlContent)); err != nil {
return err
}
// ---