PC Review


Reply
Thread Tools Rate Thread

Open Email Client from Windows Forms

 
 
R-D-C
Guest
Posts: n/a
 
      10th Dec 2003
Hi,

I have a windows forms application which shows an email address in a
LinkLabel. I want it so that when you click the link it shows your email
client with the To: box completed automatically. Up to now I haven't found
how you launch the email client in this way.

Has anybody else done this?


 
Reply With Quote
 
 
 
 
Eric Cadwell
Guest
Posts: n/a
 
      10th Dec 2003
System.Diagnostics.Process.Start(@"private.php?do=newpm&u=&subject=open
default mail client");
But this solution has a limit of 255 characters.

HTH;
Eric Cadwell
http://www.origincontrols.com


 
Reply With Quote
 
Herfried K. Wagner [MVP]
Guest
Posts: n/a
 
      10th Dec 2003
* "R-D-C" <(E-Mail Removed)> scripsit:
> I have a windows forms application which shows an email address in a
> LinkLabel. I want it so that when you click the link it shows your email
> client with the To: box completed automatically. Up to now I haven't found
> how you launch the email client in this way.


\\\
Dim psi As New ProcessStartInfo()
With psi
.FileName = "private.php?do=newpm&u="
.UseShellExecute = True
End With
Process.Start(psi)
///

--
Herfried K. Wagner [MVP]
<http://www.mvps.org/dotnet>
 
Reply With Quote
 
R-D-C
Guest
Posts: n/a
 
      12th Dec 2003
Thanks Eric, this works a charm :-D.

I actually used the line...

System.Diagnostics.Process.Start(@"mailto:" + EmailAddressInput.Text);

....in the end where EmailAddressInput is a link label showing the email
address.

It was one of those things that you put in the specification thinking it
will be bread and butter stuff. (As it turned out to be). Took a bit of
finding a solution though.

Thanks again

"Eric Cadwell" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> System.Diagnostics.Process.Start(@"private.php?do=newpm&u=&subject=open
> default mail client");
> But this solution has a limit of 255 characters.
>
> HTH;
> Eric Cadwell
> http://www.origincontrols.com
>
>



 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Re: Webpage email link won't open -- error message -- default email client not installed mac Windows Vista Mail 0 28th Jul 2007 03:56 AM
Re: Webpage email link won't open -- error message -- default email client not installed mac Windows Vista Mail 0 28th Jul 2007 03:21 AM
Re: Webpage email link won't open -- error message -- default email client not installed mac Windows Vista Mail 0 27th Jul 2007 04:47 PM
outlook 2003 is my default client email - email links to not open on the web byte55@yahoo.com Microsoft Outlook Discussion 0 14th Dec 2005 06:14 PM
Multiple Windows Open When Clicking on Link from Email Client =?Utf-8?B?Um9iaW4gV2lsa2Vz?= Windows XP General 0 24th Jan 2004 11:26 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 09:56 AM.