Which setting needs to send mail from Ubuntu machine smtp not recheable Please suggest?

Which setting needs to send mail from Ubuntu machine smtp not reachable Please suggest ?

I have used phpmailer. and used in cakephp.

This problem is solved by me. I have changed that Port and it’s works.