Newbie needs help on email code

I was taught to do email coding on a training video like this. It doesn’t work. Any suggestions?

on (release) {
subject = “my site comments”;
recipient = “[email protected]”;
loadVariables(“http://www.mydomain.org/cgi-bin/formmail.pl”, this, “POST”);
nextFrame();

}