FIX: Error occurs when you run sp_send_dbmail stored procedure that contains comma in sender email address and name in SQL Server

Applies to: SQL Server 2014 Service Pack 2SQL Server 2014 DeveloperSQL Server 2014 Enterprise

Symptoms


Assume that you use Database Mail and sp_send_dbmail stored procedure to send an email in Microsoft SQL Server 2014, 2016 or 2017. When you pass the recipients parameter (for example: First Name, Last Name) that contains comma to the stored procedure, you may notice that the SQL Server fails to send an email. Additionally, you may receive an error message that resembles the following:

Msg 14613, Level 16, State 1, Procedure ProcedureName, Line LineNumber [Batch Start Line 0] The specified '@recipients' cannot use commas (,) to separate addresses: '"UserName, User Title" <Email@Contoso.com>'. To continue, use semicolons (;) to separate addresses.

Status


Microsoft has confirmed that this is a problem in the Microsoft products that are listed in the "Applies to" section.

References


Learn about the terminology that Microsoft uses to describe software updates.