---
id: object/page/4512
type: object
title: Page 4512 "SMTP Account"
summary: Page 4512 "SMTP Account" in Email - SMTP Connector (System.Email). Introduced in BC29, still in BC30.
tier: official
language: en
tags:
  - page
  - email - smtp connector
versions:
  introduced: "29"
  last_changed: null
  deprecated: null
review:
  state: derived
  by: null
  at: null
  flags: []
generated:
  at: "2026-10-11T00:31:51.816Z"
  pipeline: 0.2.0
  prompts: {}
  input_hash: 517b463e614903fc5d9ac424f4543885954bd8cc12581fb66573f183d92fd866
evidence:
  - kind: code
    url: https://github.com/microsoft/BCApps/blob/ea08af5ef2d6a9b5c5af4a029288abbe2c883220/src/Apps/W1/Email%20-%20SMTP%20Connector/app/src/SMTPAccount.Page.al
    title: src/Apps/W1/Email - SMTP Connector/app/src/SMTPAccount.Page.al (releases/29.x)
    date: null
    commit: ea08af5ef2d6a9b5c5af4a029288abbe2c883220
    t: null
    quote: null
  - kind: learn
    url: https://learn.microsoft.com/dynamics365/business-central/dev-itpro/developer/devenv-extending-email
    title: Extending Email
    date: null
    commit: null
    t: null
    quote: null
links:
  learn:
    - https://learn.microsoft.com/dynamics365/business-central/dev-itpro/developer/devenv-extending-email
  objects: []
  features: []
  topics:
    - topic/dev-itpro/development/extensibility/extending-the-base-application/examples
  localizations: []
  videos: []
  posts: []
  guidelines: []
object_type: page
object_id: 4512
name: SMTP Account
namespace: System.Email
app: Email - SMTP Connector
extends: null
first_version: "29"
last_version: "30"
present_in:
  - "29"
  - "30"
changed_in: []
source_major: "29"
obsolete: null
countries: []
ms_search_form_ids:
  - docs/learn-devitpro/dev-itpro/developer/devenv-extending-email.md
counts:
  fields: 0
  procedures: 1
  events: 0
  subscribers: 0
  controls: 15
  actions: 4
relations:
  out: 1
  referenced_by: 0
  pages: 0
  extended_by: 0
  event_subscribers: 0
  calls: 2
  called_by: 1
  implements: 0
---

# Page 4512 "SMTP Account"

> Page 4512 "SMTP Account" in Email - SMTP Connector (System.Email). Introduced in BC29, still in BC30.

Email - SMTP Connector · System.Email · BC29-30 · [source at ea08af5e](https://github.com/microsoft/BCApps/blob/ea08af5ef2d6a9b5c5af4a029288abbe2c883220/src/Apps/W1/Email%20-%20SMTP%20Connector/app/src/SMTPAccount.Page.al) · facts from BC29

## Properties

| Property | Value |
|---|---|
| Caption | SMTP Account |
| Extensible | false |
| SourceTable | SMTP Account |
| PageType | Card |
| Permissions | tabledata "SMTP Account" = rimd |

## Fields on this page

Layout controls in source order, grouped by the container they sit in. Shows: the table field a control is bound to (or its expression as written); ToolTip: the control's own, else the bound field's (marked).

| Group | Control | Shows | ToolTip |
|---|---|---|---|
| General | Account Name | [Name](../table/4511.md#fields) | Specifies the name of the SMTP account |
|  | Sender Email Account | [Sender Type](../table/4511.md#fields) | Specifies whether emails appear to come from the email accounts that people sign in with, or the account you enter in the Email Address field. For Current User, everyone who uses this SMTP account must have the Send As permission on your mail server to the account in the User Name field. For Specifi... |
|  | Sender Name | [Sender Name](../table/4511.md#fields) | Specifies a name to add in front of the sender email address on emails. The name depends on the Sender Email Address field. For Current User, this is the name from the account you used to sign in. For Specific Account, this can be any name. For example, if you enter Stan, and the address in the Emai... |
|  | Email Address | [Email Address](../table/4511.md#fields) | Specifies the email address to show as the sender on email messages. This field is available if you choose Specific Account in the Sender Email Account field. For example, this lets all emails appear to come from the same account, such as sales@cronus.com. This account must have the Send As permissi... |
| Server settings | ServerUrl | [Server](../table/4511.md#fields) | Specifies the address of the SMTP server. For example, smtp.office365.com. <small>from the table field</small> |
|  | Server Port | [Server Port](../table/4511.md#fields) | Specifies the port of the SMTP server. The default setting is 25. |
|  | Authentication | [Authentication Type](../table/4511.md#fields) | Specifies the type of authentication that the SMTP mail server uses. |
|  | User Name | [User Name](../table/4511.md#fields) | Specifies the user account to use when authenticating to the SMTP server. |
|  | Password | `Password` | Specifies the password of the SMTP server. |
|  | Secure Connection | [Secure Connection](../table/4511.md#fields) | Specifies whether your SMTP mail server setup requires a secure connection that uses a cryptography or security protocol, such as secure socket layers (SSL). |
| CustomizedOAuth2SettingsGroup | Use custom OAuth 2.0 settings | `CustomOAuth2Settings` | Specifies whether to use customized OAuth 2.0 settings for authentication. |
| Customized OAuth 2.0 settings | Client ID | `ClientId` | Specifies the client ID of the third-party application registered in Microsoft Entra (Azure AD). |
|  | Client Secret | `ClientSecret` | Specifies the client secret associated with the client ID for authenticating the SMTP connection. |
|  | Tenant ID | `TenantId` | Specifies the tenant ID of the email account registered in Microsoft Entra (Azure AD). |
|  | Redirect URI | [Redirect Uri](../table/4511.md#fields) | Specifies the redirect URI configured in the app registration in Microsoft Entra (Azure AD). |

## Actions

| Group | Action | ToolTip | Runs |
|---|---|---|---|
| Processing | Apply Office 365 Server Settings | Apply the Office 365 server settings to this record. |  |
|  | Authenticate OAuth 2.0 | Authenticate with your customized Exchange Online account. |  |
|  | Authenticate OAuth 2.0 | Authenticate with your Exchange Online account. |  |
|  | Verify Authentication | Verify that OAuth 2.0 authentication was successful. |  |

## Procedures

1 local procedures, no public ones.

## Triggers

OnOpenPage, OnQueryClosePage

## Relations

- source table [Table 4511 "SMTP Account"](../table/4511.md)

## Calls

From the extracted call graph of BC29 (graphify-al on the snapshot checkout): calls whose target is known from a declared type or an `Object::"Name"` argument. Interface dispatch and calls through events are not counted, so the list is not complete.

- [Codeunit 457 "Environment Information"](../codeunit/457.md) (2 calls: `SetProperties → IsOnPrem`, `SetProperties → IsSaaSInfrastructure`)
- [Codeunit 4513 "SMTP Connector Impl."](../codeunit/4513.md) (1 call: `SetProperties → GetO365SmtpServer`)

## Called by

- [Codeunit 4513 "SMTP Connector Impl."](../codeunit/4513.md) (1 call: `ShowAccountInformation → (object)`)

## Across versions

- Present in: BC29-30
- Changed (declaration) in: none

## Documented on Microsoft Learn

- [Extending Email](https://learn.microsoft.com/dynamics365/business-central/dev-itpro/developer/devenv-extending-email)

Source: AL metadata extracted from the code (names, ids, signatures, properties); no code bodies (D10).

## Ask your agent

Procedure bodies are not stored here (D10). The call sections above are our own, per object, from the BC29 call graph. For a procedure body or the calls of one procedure, ask bc-code-atlas (external, by Stefan Maron, MIT; default corpus w1-28), which the bc-observatory plugin connects: `bcatlas_resolve_node(object_type: "page", object_name: "SMTP Account")`, then `bcatlas_get_procedure_body` or `bcatlas_get_neighbors` on the returned id.
