-
Notifications
You must be signed in to change notification settings - Fork 2.9k
DatabaseMail - Display Name - Caractere "\" #10203
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
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
@luizvitorf : Thanks for your contribution! The author(s) and reviewer(s) have been notified to review your proposed change. |
Learn Build status updates of commit 3786c05: ✅ Validation status: passed
For more details, please refer to the build report. |
Can you review the proposed changes? Important: When the changes are ready for publication, adding a #label:"aq-pr-triaged" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR addresses a documentation issue where the backslash character "" in Database Mail Display Names disappears in sent emails. The change adds a clarification to help users understand they need to escape backslashes by using "\" instead of a single "" to ensure proper display in email headers.
- Adds documentation about backslash escaping requirement for Display Names
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
docs/relational-databases/database-mail/configure-database-mail.md
Outdated
Show resolved
Hide resolved
…l.md Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Thanks @luizvitorf for taking the time to submit this PR! This is a nice addition. Did some edits. Your commit will be merged and this article update is in flight. After the updated article is published, GitHub will list you as an article contributor. Thanks again for this feedback, your suggestions help improve our documentation. #sign-off |
Learn Build status updates of commit d7af944: ✅ Validation status: passed
For more details, please refer to the build report. |
Learn Build status updates of commit 53a9b51: ✅ Validation status: passed
For more details, please refer to the build report. |
#sign-off |
docs/relational-databases/database-mail/configure-database-mail.md
Outdated
Show resolved
Hide resolved
Learn Build status updates of commit 2a4a19a: ✅ Validation status: passed
For more details, please refer to the build report. |
@WilliamDAssafMSFT, a doubt: "GitHub will list you as an article contributor" Where is the exact location that shows the article's contributors, would it be the one in the image below? ![]() I'm happy to contribute once again! |
@luizvitorf correct |
Ok, thanks! |
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.
Here is an example of the email:
When adjusting by including “\” the name appears correctly in the email.
Here is the correct 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