Mail close event

Purpose

This event command can be used to trigger an action, on the occurrence of the mentioned event (when an email is closed or view is changed to a different tab/application):

Request URL 

On mail close event

clientsdk.on("mail_close")​

 

Sample Request


				clientsdk.on("mail_close", function() {clientsdk.dispatch("compose", { mode: "insert", mailData:"Hi, This is regarding the sales pitch we had discussed about previously.").then(function(mailObj){ });})