diff --git a/extra/smtp/smtp.factor b/extra/smtp/smtp.factor index 27aac1202e..ce5c114c00 100755 --- a/extra/smtp/smtp.factor +++ b/extra/smtp/smtp.factor @@ -169,3 +169,15 @@ LOG: smtp-response DEBUG ! : cram-md5-auth ( key login -- ) ! "AUTH CRAM-MD5\r\n" get-ok ! (cram-md5-auth) "\r\n" append get-ok ; + +! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + +USE: new-slots + +TUPLE: email from to subject body ; + +: <email> ( -- email ) email construct-empty ; + +: send ( email -- ) + { email-body email-subject email-to email-from } get-slots + send-simple-message ; \ No newline at end of file