Data Sheet

dScript
dScript User Manual v2.15
If you do not have your own domain, Google provides a restricted free public smtp server at
aspmx.l.google.com. The catch is: you can only send emails to a gmail account, but as gmail
accounts are free its no problem.
email.from "dS3484@devantech.co.uk"
email.server "aspmx.l.google.com"
email.port 25
emailport Devantech "devantech15@gmail.com"
Note that username and password are not required or supplied above, and the recipient is a
gmail address.
A complete program example to send emails:
tcpip.hostname "dS3484"
tcpip.ip "192.168.0.136"
tcpip.mask "255.255.255.0"
tcpip.port 17494
tcpip.dns1 "192.168.0.1"
tcpip.dns2 "8.8.8.8"
tcpip.gateway "192.168.0.1"
email.from "YardController@My.Home"
email.server "aspmx.l.google.com"
email.port 25
emailport Devantech "devantech15@gmail.com"
emailport Personal "MyOwnAddress@gmail.com"
string Subject[100]
string Msg[200]
var Response
var EmailSent
digitalport IO1 9
digitalport IO2 10
digitalport LedBlue 32 ; Blue Led, sending email(s)
digitalport LedGreen 33 ; Green Led, success
digitalport LedRed 34 ; Red Led, failed
main: LedGreen = off
EmailSent = 0
do
if IO1 then
if EmailSent==0 then
LedBlue = on
Subject = "Gate sensor triggered"
Msg = "Any additional information can go here"
Devantech.Send(Subject, Msg, Response) ; send the email
Copyright © 2016, Devantech Ltd.
All rights reserved.
www.robot-electronics.co.uk
50