Go, Golang, Backend, Email, Smtp.
//Handle error } err = wc.Close() if err != nil { //Handle error } c.IndentedJSON(http.StatusOK, gin.H{ "response": "success", "message": "email sent", }) Breaking down the code: tlsConfig := &tls.Config{ InsecureSkipVerify: false, ServerName: smtpHost, } Firstly, we have created an object