Lantica Software Support Center
Lantica Software Home Page


Knowledgebase

How do I change the port number for @SendMail()?

Top :: Internet :

By default most SMTP servers accept connections on port 25 for sending email. Lately however many companies have been switching to a different port to try and combat spam email. If your SMTP server uses a port other than 25 you will need to change a file on your computer so the SBasic command @SendMail() will work.

The file you will need to edit is the services file which can be found in the C:\WINDOWS\system32\drivers\etc. Open this file with Notepad. You will see a line that says

smtp 25/tcp mail #Simple Mail Transfer Protocol

Change the 25 to the port number that your SMTP server uses and then click File->Save. The computer may need to be restarted in order for this change to take effect.