It's not the code, it's an issue with the server.
Add the contact form from the web site I gave you, configure it and get it to send an email to yourself. Not a x10 address.
I bet it doesn't work. Something has been mis configured or disabled on whatver server, stoli I think I'm hosting on...