---
id: object/table/4511
type: object
title: Table 4511 "SMTP Account"
summary: Table 4511 "SMTP Account" in Email - SMTP Connector (System.Email). 15 fields, 7 public procedures. Introduced in BC29, still in BC30.
tier: official
language: en
tags:
  - table
  - 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: e1c793a1cbbdc1eb5e1f2a508cd2ae8f4ec343ae09679706314090871094bc16
evidence:
  - kind: code
    url: https://github.com/microsoft/BCApps/blob/ea08af5ef2d6a9b5c5af4a029288abbe2c883220/src/Apps/W1/Email%20-%20SMTP%20Connector/app/src/SMTPAccount.table.al
    title: src/Apps/W1/Email - SMTP Connector/app/src/SMTPAccount.table.al (releases/29.x)
    date: null
    commit: ea08af5ef2d6a9b5c5af4a029288abbe2c883220
    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: table
object_id: 4511
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: []
counts:
  fields: 15
  procedures: 7
  events: 0
  subscribers: 0
relations:
  out: 0
  referenced_by: 0
  pages: 2
  extended_by: 0
  event_subscribers: 0
  calls: 0
  called_by: 0
  implements: 0
---

# Table 4511 "SMTP Account"

> Table 4511 "SMTP Account" in Email - SMTP Connector (System.Email). 15 fields, 7 public procedures. 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.table.al) · facts from BC29

Learn documents this table through its pages: [Page 4511 "SMTP Account Wizard"](../page/4511.md) (1 Learn page), [Page 4512 "SMTP Account"](../page/4512.md) (1).

## Properties

| Property | Value |
|---|---|
| Caption | SMTP Account |
| Access | Internal |

## Fields

Explanation: the field's ToolTip in the code; without one, the ToolTip of a page control bound to the field (marked via the page); without that, its Caption (marked caption) when that differs from the name.

| No. | Name | Type | Explanation | Notes |
|---|---|---|---|---|
| 1 | Id | Guid | Primary Key <small>caption</small> | DataClassification SystemMetadata |
| 2 | Name | Text[250] | Specifies the name of the SMTP account <small>via [Page 4512 "SMTP Account"](../page/4512.md)</small> | DataClassification CustomerContent |
| 3 | Server | Text[250] | Specifies the address of the SMTP server. For example, smtp.office365.com. | DataClassification CustomerContent |
| 5 | User Name | Text[250] | Specifies the user account to use when authenticating to the SMTP server. <small>via [Page 4512 "SMTP Account"](../page/4512.md)</small> | DataClassification CustomerContent |
| 6 | Server Port | Integer | Specifies the port of the SMTP server. The default setting is 25. <small>via [Page 4512 "SMTP Account"](../page/4512.md)</small> | DataClassification CustomerContent |
| 7 | Secure Connection | Boolean | Specifies whether your SMTP mail server setup requires a secure connection that uses a cryptography or security protocol, such as secure socket layers (SSL). <small>via [Page 4512 "SMTP Account"](../page/4512.md)</small> | DataClassification CustomerContent |
| 8 | Password Key | Guid | — | DataClassification SystemMetadata |
| 9 | Sender Type | Enum "SMTP Connector Sender Type" | 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... <small>via [Page 4512 "SMTP Account"](../page/4512.md)</small> | enum [Enum 4512 "SMTP Connector Sender Type"](../enum/4512.md); DataClassification CustomerContent |
| 10 | Email Address | Text[250] | 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... <small>via [Page 4512 "SMTP Account"](../page/4512.md)</small> | DataClassification CustomerContent |
| 11 | Sender Name | Text[250] | 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... <small>via [Page 4512 "SMTP Account"](../page/4512.md)</small> | DataClassification CustomerContent |
| 13 | Authentication Type | Enum "SMTP Authentication Types" | Specifies the type of authentication that the SMTP mail server uses. <small>via [Page 4512 "SMTP Account"](../page/4512.md)</small> | enum [Enum 4611 "SMTP Authentication Types"](../enum/4611.md); DataClassification CustomerContent |
| 14 | Client Id Storage Id | guid | — | DataClassification CustomerContent |
| 15 | Client Secret Storage Id | guid | — | DataClassification CustomerContent |
| 16 | Tenant Id | guid | — | DataClassification CustomerContent |
| 17 | Redirect Uri | Text[1024] | Specifies the redirect URI configured in the app registration in Microsoft Entra (Azure AD). <small>via [Page 4512 "SMTP Account"](../page/4512.md)</small> | DataClassification CustomerContent |

## Keys

- PK: Id (clustered)

## Procedures

- `SetPassword(Password: SecretText)`
- `GetPassword(PasswordKey: Guid): SecretText`
- `SetClientId(ClientId: SecretText)` (internal)
- `GetClientId(CliendIdKey: Guid): SecretText` (internal)
- `SetClientSecret(ClientSecret: SecretText)` (internal)
- `GetClientSecret(ClientSecretKey: Guid): SecretText` (internal)
- `DeleteIsolatedStorageIfExists(KeyToCheck: Guid)` (internal)

## Triggers

OnDelete

## Pages and codeunits on this table

- [Page 4511 "SMTP Account Wizard"](../page/4511.md) (source table)
- [Page 4512 "SMTP Account"](../page/4512.md) (source table)

## Across versions

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

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). 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: "table", object_name: "SMTP Account")`, then `bcatlas_get_procedure_body` or `bcatlas_get_neighbors` on the returned id.
