This topic is locked
[SOLVED]

 Passing value as a parameter from column into Event

12/28/2016 2:01:38 AM
ASPRunner.NET General questions
L
loda_65 author

HELLO Everyone <img src='https://asprunner.com/forums/file.php?topicimage=1&fieldname=question&id=24380&image=1&table=forumtopics' class='bbc_emoticon' alt=':)' />
i am trying to create an email notification event and the email recipient to be captured from the record added ( for example Field/Column name is "STAFF_EMAIL" )
Add page ( After record added ) event

Action : Send Simple email
dim tmpDict

set tmpDict = CreateObject("Scripting.Dictionary")

tmpDict("to")="test@test.com" <---------------------------- need to insert a parameter ( contains Email value ) captured from the new record added

tmpDict("subject")="Sample subject"

tmpDict("body")="Hello there" & vbcrlf & "Best regards"

set attachments = CreateObject("Scripting.Dictionary")

'attachments(0) = getabspath("files/1.jpg")

'attachments(1) = getabspath("files/2.jpg")

set tmpDict("attachments") = attachments

set ret=runner_mail(tmpDict)

if not ret("mailed") then

response.write ret("message")

end if

jadachDevClub member 12/28/2016

I think you are posting in the wrong forum. The code you listed looks to be for ASPRunner not ASPRunner.Net
In any event, you need to do this: tmpDict("to")=dict("STAFF_EMAIL")

L
loda_65 author 12/28/2016



I think you are posting in the wrong forum. The code you listed looks to be for ASPRunner not ASPRunner.Net
In any event, you need to do this: tmpDict("to")=dict("STAFF_EMAIL")


Thank you for the input jadach , i'll use the ASPRunner Pro i guess .