It seems that customClient.Do needs a http.Request, not your Request (what's that?)
``` request, err := http.NewRequest("POST", "https://api.sendgrid/com/v3/mail/send", strings.NewReader(` { "personalizations": [ { "to": [ { "email": "`+user_email+`" } ], "substitutions" : { "-username-" : "`+username+`", "-code-" : "`+user_code+`", "-email-" : "`+user_email+`" } } ], "from": { "email": "noreply@" }, "template_id" : "f69ce275-2421-4fca-beb0-247482ea3af0" }`), ) if err != nil { log.Fatal(err) } req.Header["Authorization"] = "Bearer api_key" req.Header["User-Agent"] = "sendgrid/3.1.0o" req.Header["Accept"] = "application/json" customClient := urlfetch.Client(appengine.NewContext(r)) response, err := customClient.Do(request) ``` -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.