Send a email when I click a button from script

Hi Team,

When I click a button then I will update some and trigger the mail from telligent. 

I tried with below api,

$core_v2_email.Send("Test Mail", "Send mail", "%{ FromEmail = 'adc@gmail.com',ToEmail = 'xyz@gmail.com'}")

But I didn't any mail & I got response from telligent also like below,

Can anyone help what I done wrong here Please??

Regards,

Kiran C.