How To ...‎ > ‎

How send an email

First of all you need an SMTP account like 'smtp2go' or even gmail.
Associated with this account you must gather the following information :google account
- The login (or user name) 
- The password
- The SMTP server and the port required.

For smtp2go the infos are :
Server : and the port is 465

For gmail the infos are:
Server: and the port is 465.

Note that gmail must be "unlocked" in order to activate this functionality.
This can be done going into the settings of your google account and activate the option "Less secure app access"

Then ony 2 lines are required to send an email with Annex:

CODE: email.bas

EMAIL.SETUP "", 465, "my_login", "my_pass'replace with your login / password

print EMAIL ("", "", "Title - important message",  "The memory available is low!")

This program will print '1' in the console if the message has been sent or 0 in case of problem

if you message contains colons ie a time$ "10:12:34" then it may not send. A work around is to use the replace$ command  to replace : with -    "