How to send emails from a ticket via deluge script

How to send emails from a ticket via deluge script

We are planning to send an email from a ticket via deluge script how can we do that?