@@ -64,7 +64,7 @@ func Magic(c *gin.Context) {
|
||||
return
|
||||
} else {
|
||||
// Send email using resend
|
||||
emailClient, err := email.NewSMTPClient()
|
||||
emailClient, err := new(email.Client).NewSMTPClient()
|
||||
if err != nil {
|
||||
utils.HttpResponse(c, 500, "", "invalid email config")
|
||||
return
|
||||
|
||||
Reference in New Issue
Block a user