Download Firefox: WindowsMac OS X
logo       
Google Custom Search
    AddThis Social Bookmark Button

email from timer: msg#00001

Subject: email from timer

I'd like to have a periodic process that sends email if certain conditions are met, but when I try the following

(defun start-watching (&optional (period 600))
  (labels ((check  ()
                  (when <conditions-are-met>
                        (WWW-UTILS:SEND-MAIL-FROM  ...))))
    (setq *watch-process* (mp:make-named-timer "Watcher" #'check))
    (mp:schedule-timer-relative *watch-process* 0 period)))

I get the error "PROCESS-WAIT when scheduling not allowed" whenever send-mail-from is invoked from within "check". Perhaps send-mail-from does some scheduling itself, but that is not allowed from within the context of a scheduled function?

What can I do to fix this?

    Thanks,

        Mark


--
Mark Klein
Principal Research Scientist
Massachusetts Institute of Technology
77 Massachusetts Avenue, NE20-336
Cambridge MA 02139 USA
m_klein@xxxxxxx
http://cci.mit.edu/klein/

_______________________________________________
WWW-CL mailing list
WWW-CL@xxxxxxxxxxxxxxxxxxx
https://lists.csail.mit.edu/mailman/listinfo/www-cl



<Prev in Thread] Current Thread [Next in Thread>