         form-hmac (hmac hmac-secret
                         (str now token (invite :id) (invite :invitee-email)))
         api-domain (or (:api-domain env) (str "localhost:" @api-port))]
+    ; TODO: use mustache instead
     (str "<!DOCTYPE html>"
          "<html>"
          "  <head>"


(defn send-invite
  [invite]
  (http/post (str "https://api.mailgun.net/v3/" (env :mailgun-domain) "/messages")
             {:basic-auth ["api" (env :mailgun-password)]
              :form-params (merge {:to (invite :invitee-email)
                                   :from (str "noreply@" (env :mailgun-domain))

  (let [now (.getTime (java.util.Date.))
        form-hmac (hmac hmac-secret (str now token (user :id)))
        api-domain (or (:api-domain env) (str "localhost:" @api-port))]
    ; TODO: use mustache instead
    (str "<!DOCTYPE html>"
         "<html>"
         "  <head>"
