bytes-fix
This commit is contained in:
parent
2ccc2ae4eb
commit
6e0ab799b8
|
@ -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)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user