Skip to content

Commit 2a1745f

Browse files
Update database-mail-configuration-objects.md
Resolves https://github.com/MicrosoftDocs/sql-docs/issues/7584
1 parent 675a86c commit 2a1745f

1 file changed

Lines changed: 11 additions & 10 deletions

File tree

‎docs/relational-databases/database-mail/database-mail-configuration-objects.md‎

Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
---
2-
description: "Database Mail Configuration Objects"
3-
title: "Database Mail Configuration Objects | Microsoft Docs"
2+
description: "Describes the Database Mail configuration objects for configuration of the settings that Database mail should use when sending an email from your database application or SQL Agent."
3+
title: "Database Mail Configuration Objects"
44
ms.custom: ""
5-
ms.date: "03/14/2017"
5+
ms.date: "07/26/2022"
66
ms.prod: sql
77
ms.prod_service: "database-engine"
88
ms.reviewer: ""
@@ -30,7 +30,6 @@ helpviewer_keywords:
3030
- "Database Mail [SQL Server], profiles"
3131
- "profiles [SQL Server], Database Mail"
3232
- "accounts [Database Mail]"
33-
ms.assetid: 03f6e4c0-04ff-490a-bd91-637806215bd1
3433
author: WilliamDAssafMSFT
3534
ms.author: wiassaf
3635
---
@@ -56,11 +55,13 @@ ms.author: wiassaf
5655

5756
- Windows Authentication: Database Mail uses the credentials of the [!INCLUDE[ssDEnoversion](../../includes/ssdenoversion-md.md)] Windows service account for authentication on the SMTP server.
5857

59-
- Basic Authentication: Database Mail uses the username and password specified to authenticate on the SMTP server.
58+
- Basic Authentication: Database Mail uses the username and password specified to authenticate on the SMTP server.
59+
60+
- Note that basic authentication for Exchange Online is being deprecated. For more information, see [Basic Authentication and Exchange Online](/exchange/clients-and-mobile-in-exchange-online/deprecation-of-basic-authentication-exchange-online#re-enabling-and-opting-out-of-proactive-protection).
6061

6162
- Anonymous Authentication: The SMTP server does not require any authentication. Database Mail will not use any credentials to authenticate on the SMTP server.
6263

63-
Account information is stored in the **msdb** database. Each account consists of the following information:
64+
Account information is stored in the `msdb` database. Each account consists of the following information:
6465

6566
- The name of the account.
6667

@@ -86,7 +87,7 @@ ms.author: wiassaf
8687

8788
- The password to use for authentication to the e-mail server, if the e-mail server requires authentication.
8889

89-
The Database Mail Configuration Wizard provides a convenient way to create and manage accounts. You can also use the configuration stored procedures in **msdb** to create and manage accounts.
90+
The Database Mail Configuration Wizard provides a convenient way to create and manage accounts. You can also use the configuration stored procedures in `msdb` to create and manage accounts.
9091

9192

9293
## <a name="DBProfile"></a> Database Mail Profile
@@ -96,9 +97,9 @@ ms.author: wiassaf
9697

9798
A profile may be public or private.
9899

99-
**Public profiles** are available for all members of the **DatabaseMailUserRole** database role in the **msdb** database. They allow all members of the **DatabaseMailUserRole** role to send e-mail using the profile.
100+
**Public profiles** are available for all members of the **DatabaseMailUserRole** database role in the `msdb` database. They allow all members of the **DatabaseMailUserRole** role to send e-mail using the profile.
100101

101-
**Private profiles** are defined for security principals in the **msdb** database. They allow only specified database users, roles, and members of the **sysadmin** fixed server role to send e-mail using the profile. By default, a profile is private, and allows access only to members of the **sysadmin** fixed server role. To use a private profile, **sysadmin** must grant users permission to use the profile. Additionally, EXECUTE permission on the **sp_send_dbmail** stored procedure is only granted to members of the **DatabaseMailUserRole**. A system administrator must add the user to the **DatabaseMailUserRole** database role for the user to send e-mail messages.
102+
**Private profiles** are defined for security principals in the `msdb` database. They allow only specified database users, roles, and members of the **sysadmin** fixed server role to send e-mail using the profile. By default, a profile is private, and allows access only to members of the **sysadmin** fixed server role. To use a private profile, **sysadmin** must grant users permission to use the profile. Additionally, EXECUTE permission on the **sp_send_dbmail** stored procedure is only granted to members of the **DatabaseMailUserRole**. A system administrator must add the user to the **DatabaseMailUserRole** database role for the user to send e-mail messages.
102103

103104
Profiles improve reliability in cases where an e-mail server becomes unreachable or unable to process messages. Each account in the profile has a sequence number. The sequence number determines the order in which Database Mail uses accounts in the profile. For a new e-mail message, Database Mail uses the last account that sent a message successfully, or the account that has the lowest sequence number if no message has yet been sent. Should that account fail, Database Mail uses the account with the next highest sequence number, and so on until either Database Mail sends the message successfully, or the account with the highest sequence number fails. If the account with the highest sequence number fails, the Database Mail pauses attempts to send the mail for the amount of time configured in the **AccountRetryDelay** parameter of **sysmail_configure_sp**, then starts the process of attempting to send the mail again, starting with the lowest sequence number. Use the **AccountRetryAttempts** parameter of **sysmail_configure_sp**, to configure the number of times that the external mail process attempts to send the e-mail message using each account in the specified profile.
104105

@@ -117,7 +118,7 @@ ms.author: wiassaf
117118

118119

119120
## <a name="Add_Tasks"></a> Additional Database Configuration Tasks (System Stored Procedures)
120-
Database Mail configuration stored procedures are located in the **msdb** database.
121+
Database Mail configuration stored procedures are located in the `msdb` database.
121122

122123
The following tables list the stored procedures used for configuring and managing Database Mail.
123124

0 commit comments

Comments
 (0)