Notice: This website is an unofficial Microsoft Knowledge Base (hereinafter KB) archive and is intended to provide a reliable access to deleted content from Microsoft KB. All KB articles are owned by Microsoft Corporation. Read full disclaimer for more details.

You cannot change the default port for SMTP Communication in Microsoft Dynamics NAV


View products that this article applies to.

This article applies to Microsoft Dynamics NAV for all language locales.

↑ Back to the top


Symptoms

You cannot change the default port for SMTP Communication in Microsoft Dynamics NAV.
This problem occurs in the following products:
  • Microsoft Dynamics NAV 2009 Service Pack 1
  • Microsoft Dynamics NAV R2
  • Microsoft Dynamics NAV 2009
  • Microsoft Dynamics NAV 5.0 Service Pack 1
  • Microsoft Dynamics NAV 5.0

↑ Back to the top


Resolution

Hotfix information

A supported hotfix is available from Microsoft. There is a "Hotfix download available" section at the top of this Knowledge Base article. If you are encountering an issue downloading, installing this hotfix, or have other technical support questions, contact your partner or, if enrolled in a support plan directly with Microsoft, you can contact technical support for Microsoft Dynamics and create a new support request. To do this, visit the following Microsoft Web site: You can also contact technical support for Microsoft Dynamics by phone using these links for country specific phone numbers. To do this, visit one of the following Microsoft Web sites:

PartnersCustomersIn special cases, charges that are ordinarily incurred for support calls may be canceled if a Technical Support Professional for Microsoft Dynamics and related products determines that a specific update will resolve your problem. The usual support costs will apply to any additional support questions and issues that do not qualify for the specific update in question.


↑ Back to the top




How to obtain the Microsoft Dynamics NAV hotfix or update files

After you request a Microsoft Dynamics NAV hotfix, a hyperlink will be sent to you in an e-mail.


The e-mail will contain a hyperlink and a password. You can use the hyperlink to download the Microsoft Dynamics NAV hotfix or the update files. When you click the hyperlink, the File Download – Security Warning dialog box opens. Then, you are prompted to run, to save, or to cancel the download.


If you click Run, the files start the download and the extraction process. You must specify a folder for the new files, and then provide the password.


If you click Save, you must specify a path for saving the compressed file. When you open the file that you saved, you are prompted to specify a path for the files. Then, you must provide the password provided in the e-mail.


If you click Cancel, the download process stops.



How to install a Microsoft Dynamics NAV hotfix or an update file

The Microsoft Dynamics NAV platform hotfixes and updates are made available as single files. To install a Microsoft Dynamics NAV hotfix or an update, you must replace the existing Microsoft Dynamics NAV installation files with the hotfix or the update files.

File Information

The global version of this hotfix has the file attributes (or later file attributes) that are listed in the following table. The dates and times for these files are listed in Coordinated Universal Time (UTC). When you view the file information, it is converted to local time. To find the difference between UTC and local time, use the Time Zone tab in the Date and Time item in Control Panel.
File nameFile versionFile sizeDateTimePlatform
Microsoft.navision.mail.dll7.0.0.026,48013-Mar-201009:14x86
Microsoft.navision.mail.tlbNot Applicable3,56412-Mar-201023:45Not Applicable
To do this, follow these steps:
  1. Copy the files that you extracted from the hotfix files to the following folder:
    %ProgramFiles%\Common Files\Microsoft Dynamics NAV\Mail
  2. Register the new Microsoft.Navision.Mail.dll assembly through the Assembly Registration tool (Regasm.exe) by using the following command:
    regasm /codebase /tlb:Microsoft.Navision.Mail.tlb Microsoft.Navision.Mail.dll

    For example, you can make sure that the Regasm.exe file is in the Mail folder mentioned in step 1, open the command prompt, change the directory to "C:\Program Files (x86)\Common Files\Microsoft Dynamics NAV\Mail", and then run the following command to register the Microsoft.Navision.Mail.dll assembly:
    RegAsm.exe /codebase /tlb:Microsoft.Navision.Mail.tlb Microsoft.Navision.Mail.dll
  3. In the SMTP Mail Setup table (409), add an integer for the SMTP Port column where the InitValue is 25. For example, Add column 50000:
    { 50000 ; ;SMTP Server Port ;Integer ;InitValue=25; }
  4. In the SMTP Mail Setup form (409), add the SMTP Server Port Field as follows:
    { 14;TextBox;3850;1540;5500;440;Name=<SMTP Server Port>;ParentControl=1; InPage=0; DecimalPlaces=0:0;NotBlank=Yes; Numeric=Yes; SourceExpr="SMTP Server Port"; MinValue=1 }
    { 15;Label;440;1540;3300;440;ParentControl=14; }
  5. In the SMTP Mail Codeunit (400), change the global variable Mail variable to version 7 as follows:
    Existing
    'Microsoft Navision Mail'.SmtpMessage
    Replacement
    'Microsoft Dynamics NAV Mail Helper'.SmtpMessage
  6. Change the code in the Send function to include the configured SMTP Port Number in the SMTP Mail codeunit (400) as follows:
    Existing code
    ...
    Mail.Send( "SMTP Server",Authentication <>SMTPMailSetup.Authentication::Anonymous,"User ID", Password);
    ...
    Replacement code
    ...
    Mail.Send( "SMTP Server",Authentication <>Authentication::Anonymous,"User ID",Password,"SMTP Server Port");
    ...

Prerequisites

You must have one of the following products installed to apply this hotfix:
  • Microsoft Dynamics NAV 2009 SP1
  • Microsoft Dynamics NAV 2009 R2
  • Microsoft Dynamics NAV 2009
  • Microsoft Dynamics NAV 5.0 SP1
  • Microsoft Dynamics NAV 5.0


Removal information

You cannot remove this hotfix.

↑ Back to the top


Status

Microsoft has confirmed that this is a problem in the Microsoft products that are listed in the "Applies to" section.

↑ Back to the top


Note This is a "FAST PUBLISH" article created directly from within the Microsoft support organization. The information contained herein is provided as-is in response to emerging issues. As a result of the speed in making it available, the materials may include typographical errors and may be revised at any time without notice. See Terms of Use for other considerations.

↑ Back to the top


Keywords: kbautohotfix, kbmbsquickpub, kbnoloc, kbsurveynew, kbmbspartner, kbmbscodefix, kbmbsmigrate, kb, kbqfe

↑ Back to the top

Article Info
Article ID : 2345735
Revision : 3
Created on : 1/31/2017
Published on : 1/31/2017
Exists online : False
Views : 357