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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T19:54:45+00:00 2026-05-25T19:54:45+00:00

I have a simple application written that allows users to pick inventory items with

  • 0

I have a simple application written that allows users to pick inventory items with checkboxes. When the items are checked a textbox is populated showing the user’s input. I would like to have a class that would take the contents of the textbox and copy it to a new outlook email with the TO address pre-populated with myemail@gmail.com. ASP.Net is foreign to me and I am a very new C# coder SO I have no idea how to do this. Any ideas.

I have seen an example online as follows…

 System.Web.Mail.MailMessage message=new System.Web.Mail.MailMessage();
 message.Fields.Add( "http://schemas.microsoft.com/cdo/configuration/smtpauthenticate",1 );
 message.Fields.Add( "http://schemas.microsoft.com/cdo/configuration/sendusername","SmtpHostUserName" );
 message.Fields.Add( "http://schemas.microsoft.com/cdo/configuration/sendpassword","SmtpHostPassword" );

 message.From="from e-mail";
 message.To="to e-mail";
 message.Subject="Message Subject";
 message.Body="Message Body";
 System.Web.Mail.SmtpMail.SmtpServer="SMTP Server Address";
 System.Web.Mail.SmtpMail.Send(message);

but I have errors everywhere and think that I’m not implementing this right. Is there a simpler way to do this or just a way I might be able to understand. Thanks to any and all answers. I can only check one but I appreciate them all.

  • 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-25T19:54:46+00:00Added an answer on May 25, 2026 at 7:54 pm

    http://support.microsoft.com/kb/310263

    I am guessing you are not using the Outlook object library. If you want to, then the code is right there.

    The only change you will have to make will be

      oMsg.Body = TextBox1.text;
    

    where TextBox1 has the all the contents that you wanted to send as the message body.

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

Sidebar

Related Questions

I have a simple Desktop Facebook application that allows the user to retrieve some
I have written an ASP.NET MVC application that allows the user to specify their
Brief Description of the app: I have written a Delphi application that allows a
I've written a simple application that works with database. My program have a table
I have a simple message box in a WPF application that is launched as
I have written a Java application that runs from the command line. I want
I have an application that allows the user to enter an SQL string with
I have written simple application with container-managed security. The problem is when I log
i have written a simple console application just to try boost::thread, i am a
I have written a VERY simple MVC application which just displays a single string

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.