ASPrunnerPro32x32     ASPRunnerPro manual


Send a simple email

<< Click to Display Table of Contents >>

Navigation:  Advanced topics > Events > Predefined actions >

ASPrunnerPro32x32     ASPRunnerPro manual


Send a simple email

 

To send a simple email use Send simple email action.

step11-1

yellowbulbNote: Change the values listed in red to match your specific needs.

'**********  Send simple email  ************

' do not forget to setup email parameters like From, SMTP server etc

' on 'Security->User login settings' dialog

dim tmpDict, ret

set tmpDict = CreateObject("Scripting.Dictionary")

tmpDict("to")="test@test.com"

tmpDict("subject")="Sample subject"

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

set ret=runner_mail(tmpDict)

if not ret("mailed") then

  response.write ret("message")

end if

You can send HTML email as well:

// ********** Send HTML email ************

dim params

set params = CreateObject("Scripting.Dictionary")

params("to")="test@test.com"

params("subject")="Sample subject"

params("htmlbody")="<body><html><p>Hello<br>Best regards</p></body></html>"

params("charset")="UTF-8"

runner_mail(params)

More info on runner_mail function.