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

  • Home
  • SEARCH
  • 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 6476469
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T06:49:46+00:00 2026-05-25T06:49:46+00:00

The SmtpClient send method returns void. Is there any way to get the server

  • 0

The SmtpClient send method returns void. Is there any way to get the server response? Do I just assume it was successful unless it throws an exception?

The class I’m referring to… http://msdn.microsoft.com/en-us/library/system.net.mail.smtpclient.aspx

  • 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-25T06:49:47+00:00Added an answer on May 25, 2026 at 6:49 am

    To answer your second point, yes, all you can do is assume it’s successful – meaning it got the message to the server and the server accepted it, unless you get an exception.

    You probably already know the rest of this, but just in case…

    From there, the email could get lost and not delivered any number of ways. Your server may accept it and decide not to send it, or accept it and lose power before crashing. It may get blocked by a spam filter along the way, etc.

    You can think of an email as being similar to a regular piece of mail in that it passes through several hands between the sender and the recipient. From your code, you can only confirm that it got to the SMTP server you’re using to send, which is similar to handing it to a teller at the post office. You don’t know (or need to know) how the message is routed from there. it could be by air, ground, or carrier pigeon. You’re out of the equation – you don’t need to know how it gets sent, just that you trust that they know how to send it. (The same can be said for an email.)

    If you need to confirm that the recipient opened it, there are ways of embedding an image in an HTML message on your server and tracking in your logs when that image is accessed, etc. (Google email tracking and email open tracking)

    On the other hand…

    If the server rejects it, then you do get a server response in a manner of speaking – there should be an error code and a description in the error, which you can use to troubleshoot why it didn’t make it, or use error handling to try another route, etc.

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

Sidebar

Related Questions

I'm using SMTPClient for sending emails to a SMTP server. But with Send method
I'm currently looping through a datareader and calling the System.Net.Mail.SmtpClient's Send() method. The problem
In the following code public static void Send(SmtpClient smtpClient, MailMessage email) { try {
I've got code as follows: var smtpClient = new SmtpClient(my.mail.server); smtpClient.Send(mailmessage); however the send
I have a static helper method that I wrap around SMTPClient to send email.
Hi I've just set up a method in my website to send an email
I have this code written in .NET 4.0 using VS2010 Ultimate Beta 2: smtpClient.Send(mailMsg);
I'm sending MailMessages with an SmtpClient (being delivered successfully) using an Exchange Server but
I'm sending a simple mail with attachment using SmtpClient but I get this error:
What is the proper way to dispose of SmtpClient and MailMessage while using SendAsync

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.