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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T06:14:33+00:00 2026-05-13T06:14:33+00:00

I am writing a application which need to open a new mail dialog, upon

  • 0

I am writing a application which need to open a new mail dialog, upon clicking on a button on it. Application users uses different mail clients like MS Outlook, Thunder Bird, etc…

Application should open a new mail dialog filled with information passed by my application, like TO, BCC, Subject and Body sometimes with attachments.

And there is a requirement to set the from address too.

Most important thing is mail format should be in HTML

  • 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-13T06:14:33+00:00Added an answer on May 13, 2026 at 6:14 am

    if you want to send a mail programmatically in c#, C# is coming with “using System.Net.Mail” namespace. SmtpClient and MailMessage classes can do the work for you to explicitly send a mail configured with CC and BB and subjects settings by you.. .
    For e.g;

    //instance of mail message
                    MailMessage mail = new MailMessage();
    
                    //create instance of smtpclient
                    SmtpClient smtp = new SmtpClient();
    
                    smtp.EnableSsl = true;
    
                    //recipient address
                    mail.To.Add(new MailAddress(userid));
    
                    //Formatted mail body
                    mail.IsBodyHtml = true;
                    string st = ""; 
    st += "<HTML><BODY>";
                            st += "<span style='font-family: Verdana; font-size: 9pt'>";
                            st += "Dear Sir/Madam,<br/><br/>";
                            st += "We refer to your request for reseting your login password.";
                            st += "Please take note of your Login Password, as you need them every time you login.<br/><br/>";
                            st += "<b>Email/Userid: " + userid + "</b><br/>";
                            st += "<b>Password: " + password + "</b><br/><br/>";
                            st += "Regards</br>";
                            st += "XYZ Team";
                            st += "</span><br />";
                            st += "</HTML></BODY>";         
                            mail.Body = st;
    
                    //send mail via smtp client
                    smtp.Send(mail);        
    

    Following is the Configuration settings for SMTP client that need to be done in the APP.config:

    > <system.net>
    >     <mailSettings> <smtp from="">
    >         <network host="" port="" userName="" password=""
    > defaultCredentials="false" />
    >       </smtp>  </mailSettings>   </system.net>
    

    Note: you can define these values via code as well.

    Hope it helps.

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

Sidebar

Related Questions

I'm writing an application in Delphi which uses an SQLite3 database. I'd like to
I'm writing an application in which I need to simulate a textarea. The only
I'm writing a servlet-based application in which I need to provide a messaging system.
I am writing an android application for sending email which launches the default mail
I'm writing an application which reads large arrays of floats and performs some simple
I am writing an application which blocks on input from two istreams . Reading
I'm writing an application which has to be configurable to connect to Oracle, SQL
I am in the process of writing an application which, among other functionality, generates
I'm writing a C# application which downloads a compressed database backup via FTP. The
I am writing a console application which makes use of the F1 key (for

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.