Anonymous user
Send email: Difference between revisions
factor email example actually works now
(factor email example actually works now) |
|||
Line 348:
This one uses the build-in SMTP vocabulary. Note that 'to' and 'cc' need to be arrays of strings containing an email address.
<lang Factor>
USING:
IN:
▲: send-mail ( from to cc subject body -- )
▲ "smtp.gmail.com" 587 <inet> smtp-server set
"my.gmail.address@gmail.com" "qwertyuiasdfghjk" <plain-auth>
▲ smtp-tls? on
>>auth \ smtp-config set-global <email> f >>from t >>to
c >>cc s >>subject b >>body send-email ;</lang>▼
▲ send-email ;</lang>
=={{header|Fantom}}==
|