Why can i send email via a LAN but not via a modem line!

Is this 1) To do with the port i use? What port should i use?
2) To do with SMTP???

very confused!!