bytes-fix

This commit is contained in:
Untone 2024-01-05 18:56:13 +03:00
parent 2ccc2ae4eb
commit 6e0ab799b8

View File

@ -64,7 +64,8 @@ func MailgunRest(to string, data map[string]interface{}, subject string, templat
return err return err
} }
log.Printf("Mailgun API response: %v", responseBody) responseString := string(responseBody)
log.Printf("Mailgun API response: %s", responseString)
if resp.StatusCode != http.StatusOK { if resp.StatusCode != http.StatusOK {
return fmt.Errorf("failed to send email, status: %d", resp.StatusCode) return fmt.Errorf("failed to send email, status: %d", resp.StatusCode)