1 ! Copyright (C) 2009 Slava Pestov.
2 ! See http://factorcode.org/license.txt for BSD license.
3 USING: smtp namespaces accessors kernel arrays site-watcher.db ;
6 SYMBOL: site-watcher-from
7 site-watcher-from [ "factor-site-watcher@gmail.com" ] initialize
9 : send-site-email ( watching-site body subject -- )
10 [ account>> email>> ] 2dip
12 [ <email> site-watcher-from get >>from ] 3dip
13 [ 1array >>to ] [ >>body ] [ >>subject ] tri* send-email