Please enable JavaScript to view this site.

Navigation: Advanced topics > Events > Predefined actions

Events. 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.

send_simple_email_select_action

 

Note: 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.

 

 

 

'**********  Send simple email  ************
dim tmpDict
set tmpDict = CreateObject("Scripting.Dictionary")
tmpDict("to")="test@test.com"
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, see Registration and passwords: Email templates.

See also:

runner_mail function

Send mass email to all users

Send an email with attachment

Send an email to selected users

Send email with new data

Send email with old data

Email selected records

How to email selected records as separate PDF files