예제 #1
0
파일: main.go 프로젝트: kickserv/notable
func emailHandler(responseWriter http.ResponseWriter, request *http.Request) {
	request.ParseForm()
	//token := request.Form.Get("token")
	notable.SendEmail()
	//if validToken(token) {
	responseWriter.Header().Set("Content-Type", "text/html")
	responseWriter.Write([]byte(notable.Email()))
	//}

}
예제 #2
0
func main() {
	if len(notable.Notes()) > 0 {
		notable.SendEmail()
		notable.Reset()
	}
}