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.

Regards,
Saurav Dhyani

www.sauravdhyani.com

Comments

Popular posts from this blog

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 - 

MSDYN365BC - Data Upgrade To Microsoft Dynamics 365 Business Central on premises.

Hi Readers, We have already talked about the number of steps for upgrading to Business Central on Premises from different NAV versions. After that article, I received multiple requests for an article which list down steps for Data Migration. In this article, we will discuss steps of data migration to MSDYN365BC (on-Prem) from NAV 2017. For this article, I am considering a Cronus Demo Database without any customization. For an actual upgrade project, we will have to complete object merge using compare and Merge process. After the Merge Process, the next step is data migration. Let's discuss those steps. Direct Upgrade to Microsoft Dynamics 365 Business Central (on-Prem) is from following versions - 1. NAV 2015. 2. NAV 2016. 3. NAV 2017. 4. NAV 2018.