Opening Microsoft Office Outlook !!!

Hi everybody,

I have Email Addresses in a column of one of my DataGridViews. I need to open Microsoft Office Outlook, whenever users click on these Email Addresses, and have a new Email opened and ready on the screen with these Email Addresse in front of TO: section. I have already tried the following code in the Click Event of this column:

Process.Start( name@yahoo.com) ;

, but didn't work.

Does anybody have any idea !!!

Thanks so much,

Mathew



Answer this question

Opening Microsoft Office Outlook !!!

  • kbromer

    Thanks so so so so so much.
  • Mojo George

    Try using Process.Start("mailto:<email>").

    HTH,



  • jason d

    Thanks so much Paul,

    You are almost done with my assignment :). Just two more things to complete it:

    1) How can i create lines (Carriage Return) in the Body of my Emails

    2) How can i send them

    Thanks in advance.

    Mathew


  • S&amp;#233;bastien Nunes

    You can add parameters to the URL, i.e. mailto:<email> Subject=XXX&Body=XXX



  • NiklasECG2

    Putting carriage returns or breaks into the body section is a bit tricky because it depends on the format of the email message. If the email message type is HTML, then you can add &lt;BR&gt; for breaks in the test. Not sure what to use for plain text.

    Sending the email isn't an option. The user still has to click the send button. Hey, you can't do everything for them!

    Paul



  • Christie Myburgh

    Hi,

    Thanks so much. It worked. Can I pass more information like Subject and Body of my Email too How

    Thanks again,

    Mathew


  • Opening Microsoft Office Outlook !!!