Show/Hide Toolbars

Navigation: Advanced topics > Events > Predefined actions

PHPrunner32x32     ASPRunnerPro manual

Send simple email

Scroll Prev Next More


Send simple email action allows sending an email from one email address to another.

You can edit several parameters: the text and the subject of the message, the sender and recipient email addresses. You can also attach files of any format supported by your email service provider.


This action is available at any event except Javascript onload events.



yellowbulbNote: To use this action, you have to set up the Email settings. Press this button hmfile_hash_34fe252e on the toolbar or write the code manually.


Change the values colored in red to adjust the action code to your project.


'**********  Send simple email  ************
dim tmpDict
set tmpDict = CreateObject("Scripting.Dictionary")
tmpDict("to")="[email protected]"
tmpDict("subject")="Sample subject"
tmpDict("body")="Hello there" & vbcrlf & "Best regards"
set attachments  = CreateObject("Scripting.Dictionary")
set tmpDict("attachments") = attachments
set ret=runner_mail(tmpDict)
if not ret("mailed") then
  response.write ret("message")
end if


To learn how to customize email templates, read the article Email templates.

See also:

runner_mail function