Skip to main content

Navision SMTP Setup and Uses

Hi all,

Let's discuss and try to find out uses of SMTP Related Objects in Navision.

A Navision Database contain following SMTP Objects -

Table - SMTP Mail Setup
Form / Page - SMTP Mail Setup
Codeunit - SMTP Mail

This article is part of the Series. Please Refer Table of Content here.

Form/Page is used to enter details in SMTP Mail setup table.



Here you can enter details related to Your SMTP Mail Server. This details will be used while sending mails via Navision.

Authentication Mode and other details will be based on your server.
Anonymous - is mostly used as Authentication mode.

Till NAV 2009 R2 Navision SMTP Mail Setup does not contain the port number. It used to use default port 25 for sending mails.


we will discuss in future about the hotfix that was released by Microsoft for Customized port till NAV 2009 R2.

With release of NAV 2013 Navision SMTP Setup contain a field Port Number, in case your smtp server is configured on a customized port.



Let's see what SMTP Mail Codeunit contains.

It contain most used function related for sending e-mails. Below is the list of functions.

1. CreateMessage - Create Message is used to create a E-mail.
2. Send  - Function for Sending E-mail.
3. AddRecipients  - Function for add recipient in E-mail.
4. AddCC - Function for add CC recipient in E-mail.
5. AddBCC - Function for add BCC recipient in E-mail.
6. AppendBody - Function for adding text in Body.
7. AddAttachment - Function to add attachment in e-mail.
8. CheckValidEmailAddresses  - Check Validity of multiple e-mail addresses.
9. CheckValidEmailAddress - Check Validity of Single e-mail address.

We will see usage of all these functions in future posts.

Regards,
Saurav Dhyani

www.sauravdhyani.com

Comments

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    ---------------------------

RTC Report It is not possible to instantiate the Visual Studio bridge.

Hi all, As a Navision developers I have Multiple Versions of Navision running in single Machine. As discussed Earlier in the post how to run multiple Version of RTC in single machine. So my machine have following details for RTC Versions - NAV 2009 R2    - is installed. NAV 2009 SP1  - is copied at C:\Program Files (x86)\Microsoft Dynamics NAV\60\NAV 6.0 SP1 IN\ NAV 2009         - is copied at C:\Program Files (x86)\Microsoft Dynamics NAV\60\NAV 6.0 IN\ This approach has been working great for execution of Classic and RTC Clients. However, after installing Dynamics NAV 2009 R2, if i tried to view the Layout for an NAV 2009 SP1 Report i was getting the following error: ---------------------------  Microsoft Dynamics NAV Classic  ---------------------------  It is not possible to instantiate  the Visual Studio bridge.  ---------------------------  OK    --------------------------- After searchi...

Dynamics NAV - All that you need to know about MenuSuites.

Hi Readers, This article is based on a request from a blog reader who wanted to understand about MenuSuite in Dynamics NAV. If you have started working with Business central with AL Code then it does not apply to those releases but if you are interested go ahead. Let's start with Future - In Latest and greatest version of product MenuSuite are obsolete and no longer used. So this article applies if you want to learn about C/AL MenuSuite.