You can send an e-mail message using JavaScript without having to create a specific workstep just for this task. To send an e-mail message, use the following code:
jst.sendEmail(address, subject, content);
where address is the e-mail address of the recipient, subject is the message subject, and content is the body of the message.
You can send the values of multiple dataslots by concatenating the dataslot values before sending the message.
For example, you could use the following code to send an e-mail message:
var jcont = name + ":" + salary;
jst.sendEmail("sbm@savvion.com", "testing", jcont);
or
jst.sendEmail("sbm@savvion.com", "testing", name + ":" + salary);