The Programmer's Reference online (6.2.3) has current documentation for the 
@EMAIL and @EMAILSESSION tags.



These tags work a little differently than typical. You will call @EMAILSESSION 
is succession issuing commands:



Open > list > retrieve > delete > close



You pass the same sessionid in each time, to link them tags together (you can 
have multiple sessions open if you were, for example, reading from one email 
account and sending to another)



When you retrieve an email, you get a value of type email, which you pass into 
@EMAIL to read/parse.



I've also attached a simple email client that was developed in 2003 as tech 
preview. It's good to see how the commands are used. This is a full client with 
web interface, the code you're mostly looking for is in the TCF. There's a 
readme included to help you get up and running.



I've shored up some of the code over the years but I haven't changed the tag 
definition.



Let me know if you have any questions. I've written tools, such as scanning 
spam and no-reply folders with these tags.



Robert



From: Peter Dobbs [mailto:pe...@enginess.io]
Sent: Monday, June 10, 2019 1:49 PM
To: TeraScript-Talk@terascript.com
Subject: TeraScript-Talk: Email functionality



Is there any documentation or sample code for the email functionality?



Specifically connecting to a mail server, retrieving emails and updating read 
status.



Thanks,



Peter



Peter Dobbs

President | ENGINESS | P: 416.901.6151 <tel:416.901.6151;118>  | F: 
416.901.6150 <tel:416.901.6150>  | enginess.io







This email and any attachments are confidential and are intended only for the 
person(s) to whom it is addressed. It you are not the addressee named above, 
any use, copying, distribution or disclosure is strictly unauthorized. If you 
have received this information in error, please delete it and any attachments 
and notify me immediately.





  _____

To unsubscribe from this list, please send an email to lists...@terascript.com 
<mailto:lists...@terascript.com>  with "unsubscribe terascript-talk" in the 
body.




----------------------------------------

To unsubscribe from this list, please send an email to lists...@terascript.com 
with "unsubscribe terascript-talk" in the body.

<<attachment: mailclient-1.0.zip>>

Reply via email to