This topic is locked

simple mail button

3/26/2015 11:30:24 PM
ASPRunnerPro General questions
E
ericF author

Hello,
I want to add a simple mail button wich can send a form textfield bevore saving the record.

can you help me ?
I tried this:
> dim rmail, body, key, ret,

> set rmail=CreateDictionary()

> key = values("kommentar-admin") ' witch is my field databsename

> body=body & key & ": " & values(key) & vbcrlf

> rmail("to")="test@test.com"

> rmail("subject")="Title"

> rmail("body")=body

> set ret = runner_mail(rmail)

> result("txt") = "mail send"

> if not ret("mailed") then

> errmsg = "Error happened:
"

> errmsg = errmsg & "File: " & ret("source") & "
"

> errmsg = errmsg & "Line: " & ret("number") & "
"

> errmsg = errmsg & "Description: " & ret("description") & "
"

> result("txt") = errmsg

> end if