hookhubでmail関数が使えない
たすけて、id:cho45さん
var title = stash.params.title, message = stash.params.message; try { mail(title, message); } catch(e) {} ["title:",title,"message:", message].join(" ");
の様なのを作ったのだけど。
$ curl -v -d "title=testmail" -d "message=hogehoge" http://www.hookhub.com/hook/xxxxxxxxxx * About to connect() to www.hookhub.com port 80 (#0) * Trying 72.14.203.121... connected * Connected to www.hookhub.com (72.14.203.121) port 80 (#0) > POST /hook/xxxxxxxxxx HTTP/1.1 > User-Agent: curl/7.18.2 (i486-pc-linux-gnu) libcurl/7.18.2 OpenSSL/0.9.8g zlib/1.2.3.3 libidn/1.10 > Host: www.hookhub.com > Accept: */* > Content-Length: 31 > Content-Type: application/x-www-form-urlencoded > < HTTP/1.1 500 Internal Server Error < Date: Mon, 20 Jul 2009 11:48:48 GMT < Content-Type: text/html; charset=UTF-8 < Server: Google Frontend < Content-Length: 449 < <html><head> <meta http-equiv="content-type" content="text/html;charset=utf-8"> <title>500 Server Error</title> </head> <body text=#000000 bgcolor=#ffffff> <h1>Error: Server Error</h1> <h2>The server encountered an error and could not complete your request.<p>If the problem persists, please <A HREF="http://www.google.com/support/">report</A> your problem and mention this error message and the query that caused it.</h2> <h2></h2> </body></html> * Connection #0 to host www.hookhub.com left intact * Closing connection #0
って感じで500
が返ってきてしまうよ。
追記
う〜ん、やっぱりダメだ...
もしかしてオイラのアカウントがダメとかいう話かな...
追追記
治ったー。これで特定タグを含むブックマークをしたときにメールをして管理が可能だ。わーい。