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 6788957
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T17:32:48+00:00 2026-05-26T17:32:48+00:00

In ASP.NET I am sending a MailMessage but it won’t go through. The code

  • 0

In ASP.NET I am sending a MailMessage but it won’t go through. The code I am using is

message.To.Add(email1 + ", " + email2 + ", " + email3);

When I do this I never receive my mail. However if I use this code:

message.To.Add(email1 + ", " + email2);

It sends just fine every time. Anybody know what is going on here? All 3 emails are the same (for testing purposes) and have been verified to be correct while debugging. I tried inserting a different email address for the third and still nothing went through. I may be missing something obvious…

EDIT:
Everyone is telling me to add them individually which may well be good advice if everyone agrees upon it. The reason I didn’t do this previously and I just tried it again with three seperate addresses and none of them were sent. Maybe I have another issue entirely if that is supposed to work?

EDIT: For anyone with the same problem in the future here is what I did. When creating the MailMessage I didn’t create it with any parameters and instead specified the From parameter seperately. I wrapped the From and all To emails in new MailAddress() and the combination of all those changes appeared to work.

  • 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-05-26T17:32:49+00:00Added an answer on May 26, 2026 at 5:32 pm

    The To property of MailMessage is a collection, so you should call
    message.To.Add 3 times if want to send to 3 email addresses.

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

Sidebar

Related Questions

sending mail along with embedded image using asp.net I have already used following but
When sending email using the SMTPClient class in ASP.NET C#, how can I add
I am using ASP.NET Web forms and sending an automated email through our SMTP
I am sending email using asp.net and it is working fine. But when an
Possible Duplicates: ASP.NET- Sending an e-mail how to send mail using C#? How can
i am using System.Net.Mail for sending mail in asp.net.. how to delete attachment file
I am using Telerik controls in an ASP.NET Website. It takes time while sending
I'm sending an email from my ASP.NET MVC app using the Spark View Engine
I am creating a Web Service using ASP.NET C#. I am sending various data
I have trouble sending a message via NServiceBus. I have an ASP.Net MVC web

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.