Skip to content

Commit 3786c05

Browse files
authored
DatabaseMail - Display Name - Caractere "\"
I have an instance named “DESKTOP-LUIZLIMA\SQL2022" and when I copy its name (SELECT @@ServerName) into the Database Mail Display Name field, the “\” character disappears when the email is sent. I was able to simulate this behavior and I've seen it happen in clients I work with as well. When adjusting by including “\\” the name appears correctly in the email. My suggestion would be to include something in this part of Database Mail talking about this slash “\” or other characters that may have a similar “disappearing” behavior. https://learn.microsoft.com/en-us/sql/relational-databases/database-mail/configure-database-mail?view=sql-server-ver17 Also validate whether it is valid to insert it into the profile and account configuration pages, which also use the Display Name. https://learn.microsoft.com/en-us/sql/relational-databases/database-mail/create-a-database-mail-profile?view=sql-server-ver17 https://learn.microsoft.com/en-us/sql/relational-databases/database-mail/create-a-database-mail-account?view=sql-server-ver17
1 parent 3263f7b commit 3786c05

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

docs/relational-databases/database-mail/configure-database-mail.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -151,6 +151,8 @@ The following steps use SQL Server Management Studio (SSMS). Download the latest
151151
**Display name**
152152
Type the name to show on e-mail messages sent from this account. The display name is optional. This is the name displayed on messages sent from this account. For example, an account for [!INCLUDE [ssNoVersion](../../includes/ssnoversion-md.md)] Agent can display the name "SQL Server Agent Automated Mailer" on e-mail messages.
153153

154+
If the name contains the character “\“, you must enter “\\”, otherwise this character will “disappear” from the Display Name.
155+
154156
**Reply e-mail**
155157
Type the e-mail address that is used for replies to e-mail messages sent from this account. The reply e-mail is optional. For example, replies to an account for [!INCLUDE [ssNoVersion](../../includes/ssnoversion-md.md)] Agent can go to the database administrator, danw@Adventure-Works.com.
156158

0 commit comments

Comments
 (0)