Send email: Difference between revisions
Added Factor implementation.
m (Alphabetize) |
(Added Factor implementation.) |
||
Line 45:
COM_Term()
#Include COM.ahk</lang>
=={{header|Factor}}==
<lang Factor>! Copyright (C) 2010 Anthony Simpson.
! See http://factorcode.org/license.txt for BSD license.
USING: kernel accessors smtp io.sockets namespaces ;
IN: learn
: send-mail ( from to cc subject body -- )
"smtp.gmail.com" 587 <inet> smtp-server set
smtp-tls? on
"noneofyourbuisness@gmail.com" "password" <plain-auth> smtp-auth set
<email>
swap >>from
swap >>to
swap >>cc
swap >>subject
swap >>body
send-email ;</lang>
=={{header|Java}}==
|