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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T01:31:10+00:00 2026-05-15T01:31:10+00:00

I’m using .NET 3.5, and I want to automatically send a mail. I’m currently

  • 0

I’m using .NET 3.5, and I want to automatically send a mail. I’m currently using the following:

Microsoft.Office.Interop.Outlook.MailItem mailMsg = 
    (Microsoft.Office.Interop.Outlook.MailItem)outlookApplication.CreateItem(
     Microsoft.Office.Interop.Outlook.OlItemType.olMailItem);
mailMsg.To = recipient;
mailMsg.Subject = subject;
mailMsg.Body = body;
mailMsg.Send();

However, I’ve found several articles that seem to imply I should be using the following method:

System.Net.Mail.MailMessage mailMsg = new System.Net.Mail.MailMessage();
mailmsg.To = recipient;
mailmsg.Subject = subject;
mailmsg.Body = body;

Can anyone tell me what the difference between the two namespaces if, and why you might want to use one over the other?

  • 1 1 Answer
  • 1 View
  • 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-15T01:31:11+00:00Added an answer on May 15, 2026 at 1:31 am

    The second example needs a SMTP server, to make a direct connection, and uses this SMTP server to send the email. It has low overhead, will normally work.

    If you need to compose & send an email on behalve of the current user, you could use outlook.

    So far I have only seen answers with disadvantages for outlook. But it has a few advantages:

    • You do not have to ask the user for any configuration.
      • Outlook already knows the Exchange / SMTP server,
      • and the email address of the user
    • Email you send will be stored in the sent-items list of the user. So the user can see wat is sent in his name.
    • Add-ons that sign / encrypt outgoing email, or add a standard company disclaimer will be used, so you will follow company policies
    • Can prompt the user if it is allowed to send email (yes, this can be an advantage to)
    • You can choose to only compose the mail, present it to the user. The user can edit and choose to send it or not.

    Edit:
    I use the SMTP method for sending technical emails (like log files & error messages) to our support unit, these mails go out fast and unnoticed.

    The Outlook method I use for sending mails on behalve of my user to other humans. These mails are slow, but are trackable, etc.

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

Sidebar

Related Questions

I want to start using .NET 3.5 features in an app that is currently
Using VB.Net I want to automatically size the height of the headers in a
I want to automatically generate VB.NET forms using tables from a SQL Server database
Using VB.NET I want to display the date in datetimepicker from the database. Code.
Using VB.Net I want to get a all datagrid cell values, then insert into
I am using C#.net I want to add custom edit/delete buttons to my GridView1
Using vb.net 2008 I want to display a table in the form, so i
Using C# ASP.NET I want to program a queue. I want to have X
Using .net 2.0 . I want to display a column in a DataGridView as
I am using ASP.NET and I want to create a barcode in a pdf

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.