${ use "codex.http"; use "mail.smtp"; HTTPRequest req = new HTTPRequest(); String to = getValue("to",""); if(to ne "") { int m = startEmail("any@address.net",to,"","","test from moto",2); sendBody(m,"\n"); sendBody(m,"This is a test\n"); endEmail(m); } }$ Test Mail

Send an Email

Send To:
$if(to ne "")

Email sent to $(getValue("to"))

$endif