Email settings in virtual image installation

Dear Team,
I just downloaded the Virtual image of ERPNext and configured, it’s working fine.
But when I tried to set up the outgoing email through my yahoo id, it giving error message Invalid Outgoing Mail Server or Port.
With the same email id setup I have done on where it is working fine.

I missed something during the Virtual setup?

Maybe you have to open the port in VirtualBox too!

It’s working now…
Network card was not set as bridged… in VirtualBox