Facing issue to send Email in WorkFusion

Hello,

I am new in WorkFusion. I am able to send an email with KeyStorks successfully.

But now I want to use a script for the same thing but don’t know how to use.

I used as simple code to send mail as per image but I was stuck in that.

Can anybody help me with that? Where should I suppose to write code?

You cannot use plugins in custom actions.
You need to export your script to a bot task and code there.