· 6 years ago · Jul 28, 2019, 02:08 PM
1on load:
2 login to gmail service from mail "...@gmail.com" and password "...."
3
4command send:
5 trigger:
6 make new email:
7 set object of email to "Test email"
8 set body of email to "Look my beautiful email my friend!"
9 set receiver of email to "myfriend@gmail.com"
10 add "plugins/myfile.txt" to attachments of email
11 send last email
12
13command read:
14 trigger:
15 set {_mails::*} to last 2 mails
16 broadcast author of {_mails::1}