Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8139035
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T11:41:44+00:00 2026-06-06T11:41:44+00:00

I am trying (unsuccessfully) to use sp_send_dbmail (Transact-SQL) . The @recipients value is said

  • 0

I am trying (unsuccessfully) to use sp_send_dbmail (Transact-SQL).

The @recipients value is said to be a semicolon-delimited list of e-mail addresses to send the message to.

So, in my data table’s Email column, all I should have to do is update the row to send to multiple recipients:

Old: JoeP@jp2code.net

New: JoeP@jp2code.net; personB@jp2code.net

There are no errors, but then there is no email going out.

The code I use to call sp_send_dbmail is unchanged in my stored procedure:

IF (0 < (SELECT COUNT(ID) FROM #Email)) BEGIN
    SELECT TOP 1 @ID=ID, @email=Email FROM #Email
    EXEC msdb.dbo.sp_send_dbmail @recipients=@email, @subject=@subj, @body=@html, @body_format='HTML', @from_address='no-reply@jp2code.net', @reply_to=@email;
    DELETE #Email WHERE @email=Email
END

So, what is wrong?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-06T11:41:45+00:00Added an answer on June 6, 2026 at 11:41 am

    I may have found the issue…

    @reply_to=@email; 
    

    [ @reply_to= ] ‘reply_to’
    Is the value of the ‘reply to address’ of the email message. It accepts only one email address as a valid value. This is an optional parameter used to override the settings in the mail profile. This parameter is of type varchar(MAX). SMTP secuirty settings determine if these overrides are accepted. If no parameter is specified, the default is NULL.

    This explains why it worked with a single address, but doesn’t work with multiple addresses.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I've been trying unsuccessfully to use a UCC multiple site certificate to provide SSL
I have been trying to use a C# Regex unsuccessfully to remove certain strings
I've been trying (unsuccessfully) to use Em.Button to trigger an action on my controller
We are trying unsuccessfully to use a single image as a bottom border. See
I'm trying to use getResourceAsStream to load a java keystore albeit unsuccessfully. I'm not
I'm trying to send out an email from my as400 unsuccessfully! I'm using this
I am trying unsuccessfully to extract the formatted_address property. The following web service logs
Ive been trying unsuccessfully for a few days now to get a button to
I'm using Django templating with Google App Engine. I'm trying unsuccessfully to print out
I have been trying to setup git for our web development team unsuccessfully. Some

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.