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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T21:16:25+00:00 2026-05-23T21:16:25+00:00

I am trying to create a small desktop app that sends out e-mails to

  • 0

I am trying to create a small desktop app that sends out e-mails to people in the office (all internal). My application would run on a PC that is also on the network and the user will have outlook running for his own e-mails.

I’m looking at several examples where you need the SmtpClient and it needs to equal a host. Is there a way that I can just set it to use the local machine?

                MailMessage mailObj = new MailMessage("admin@network.com",
                reader["recipientAddress"].ToString(), "Subject", "Body");
                SmtpClient SMTPServer = new SmtpClient("127.0.0.1");
                SMTPServer.Send(mailObj);

I read that 127.0.0.1 is the local machine. Would this work, or is there a different way of going about this?

Also would my messages go out if it sent a message to an external email?

  • 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-23T21:16:25+00:00Added an answer on May 23, 2026 at 9:16 pm

    You have to install a SMTP server on your localhost to be able to send mail.

    Outlook only receives e-mails through POP3 or IMAP, etc.

    edit:
    i.e. you need

    1. some server that accepts mail through SMTP from your client and forwards it to its destination; and
    2. some server that accepts mail (normally through SMTP) and stores it in a mailbox, so people can retrieve them later through POP3 or IMAP or whatever means.

    Your company mail server should normally do both.


    edit2:

    You might be able to cheat and use SMTPClient to deliver the mail to the receiver’s mailbox server directly though.

    Try resolving for the MX record (see How to get mx records for a dns name with System.Net.DNS?) and create a SMTPClient directly to the best MX server returned.

    If Microsoft implemented enough of the SMTP specification and your host is not treated as sending spam, the mail should go through.

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

Sidebar

Related Questions

I'm trying to create a small VB-application that removes the internal link in Word
Trying to create a small monitor application that displays current internet usage as percentage
I'm trying to create a small web app that is used to remove items
I'm trying to create a small app that takes a base text template with
I'm trying to create content via a small C# desktop app, and have it
I'm trying to create a small application that will copy some .jar files into
I'm trying to create a small Javascript framework that I can use in my
I spent the last three days trying to create a small app using SDL
I am trying to create a small function that returns the number of spaces
I am trying to create a small server type application and have a question

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.