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

Welcome - Microsoft Dynamics 365!

Hi All, In this article we will discuss the new introduced member of Dynamics Family. Yes you heard it correctly, one more new member with Name "Microsoft Dynamics 365" . #ProjectMadeira   #Dynamics365

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 - 

NAV 2013 Credential Type - How to Use?

Hi all, Please do these activities when you have time, its a long activity and i would suggest do all activities in one go. So be clam and lets start. For NAV 2013 R2 Refer Here. For NAV 2016 Steps have been Reduced Please Refer Here. I have installed NAV 2013 and its work great with my windows credentials. I was checking the service console (Microsoft Dynamics NAV Administration) in NAV 2013 and found out that Credentials Type have multiple Options.