SENT EMAIL FROM THE PROGRAM

Mark Devid

Total Post:102

Points:714
Posted by  Mark Devid
C# 
C#
 1251  View(s)
Ratings:
Rate this:

I already created the application in windows forms c# which ready to be use by another user in another computer, but i am aware there will be an error occurred when run my program (because i didn't have enough time to check everything), so I decided to let users find the bug and report to me through email.

I have a button "Report a Problem", but how do i when users click that button, it will open the Microsoft Outlook and automatically filled up the Received Email or "To" with my own email?

  1. Pravesh Singh

    Post:412

    Points:2888
    Re: Sent email from the program

    Hi Mark,


    I would suggest:

    Process.Start("mailto:your@emailaddress.com");

    This will prompt Windows to create a new mail using the default email provider (which will most likely be Microsoft Outlook if it's installed).

    To use this method, please add:

    using System.Diagnostics;

    to the top of your code file.

Answer

NEWSLETTER

Enter your email address here always to be updated. We promise not to spam!