supermatthew is RIGHT.
I set up a smtp server on my local machine using both 80 port and 25 port,and the program in x10hosting can send emails using 80 port.BUT,using 25 port, it can't.
So,The problem is not in the program.
And,dear administrators,Could you unlock the ports. e.g. 25 port...