You need to read the examples in the manual. See the chapter below

--------------------
HTTP functions
--------------------
// send an email when a trade is entered


Thanks so much,

OptimusPrime