Skip to main content

BEFORE NAV 2013 - SMTP SETUP WITH Port No. Other Than 25.

Hi all,

You might have faced and resolved this issue as it is a common problem.

This article is intended for those who haven't faced issue Related to Non Standard SMTP Port during SMTP Setup till NAV 2009 R2.

With Release of NAV 2013 Microsoft Provided an option to specify port no. to be used for SMTP Server.

What if we require the Port Number in previous Version too, say in NAV 5?

Below are the Steps -

1. Backup below listed objects.

2. Insert a New Field in Table 409 SMTP Mail Setup.

3. Add new Added Field in Form / Page 409 SMTP Mail Setup.

4. In Codeunit 400 - Function Send -
    Add a New Parameter SMTP Server Port as shown below.

Deployment of DLL - (Need to close the Navision Client before Updating)

1. Download the objects from KB Article or From my Skydrive [File Name - SMTP Setup with Port No. - Microsoft.Navision.Mail7].

2. Paste the files listed below in C:\Program Files (x86)\Common Files\Microsoft Dynamics NAV\Mail

 -- Microsoft.Navision.Mail.dll
 -- Microsoft.Navision.Mail.tlb
 -- RegAsm.exe

3. Open the command Prompt as administrator and Run following command -

 --a) Navigate to Folder C:\Program Files (x86)\Common Files\Microsoft Dynamics NAV\Mail
      CD C:\Program Files (x86)\Common Files\Microsoft Dynamics NAV\Mail

 --b) Register the DLL
      regasm /tlb:Microsoft.Navision.Mail.tlb /codebase Microsoft.Navision.Mail.dll

It's Done.

Open Navision and compile Codeunit 400 and you are good to go.

Please put comments if you have any issues.

Saurav Dhyani


Popular posts from this blog

VIEW SERVER STATE permission on SQL Server?

Hi all, Sometime While trying to Login into a database we face an error message as shown below. --------------------------- Microsoft Dynamics NAV Classic --------------------------- You cannot start Microsoft Dynamics NAV Classic because you do not have the VIEW SERVER STATE permission on SQL Server. Contact your system administrator. --------------------------- OK    ---------------------------

BC 21 and Higher - PowerShell Cmdlet (Replacement of Business Central Administration).

Hi Readers, As discussed in last article about deprecating of Business Central Administration, there are few common actions that we use in administration till Business Central 20. For our on-prem customers, we will still require doing activities. As Microsoft suggest we need to start using PowerShell cmdlet.    Let's see how to do those via PowerShell, or Administration Shell. I will be keep adding commands as you comment to this article.

Send Mail with Attachment From Navision.

Hi all, We have seen how to save a report into PDF and how to send mail to a customer. Let's link these two post in one i.e. Mailing statement to a customer into PDF Format. This article is part of the Series. Please Refer  Table of Content here . If you have the old objects set let me brief you what I will be changing -