params question

  • Thread starter Thread starter Scherbina Vladimir Nickolaevich
  • Start date Start date
S

Scherbina Vladimir Nickolaevich

hello.

I have a LinkLabel control in my form, it looks like (e-mail address removed),
so, how can I execute OutLook Express and to pass needed email to it for
sending message ?
I 'm trying to do this like

System.Diagnostics.Process.Start(@"C:\Program Files\Outlook
Express\msimn.exe (e-mail address removed)");


and it's not working:

And one more question - how to open IE with params ?
if I use cmd (it works) : C:\Program Files\Internet Explorer\IEXPLORE.EXE
some_site.some_domain, in C# I'm writing
System.Diagnostics.Process.Start(@"C:\Program Files\Internet
Explorer\IEXPLORE.EXE some_site.some_domain");

But it's not working
 
For IE:

System.Dianogstics.Process.Start("http://some_site.some_domain");

That will bring up the default browser.

For OE, not totally sure that it is possible using Process.Start(). I
searched but could not find a listing of command line arguments for OE. In
fact, doing a msimn.exe -?, /?, or just --help just launched OE.

Are you doing this on a Windows form or in ASP.NET? I am assuming a Windows
form since you are using Process. For the email, you may want to use .NET
built in System.Web.Mail and specifiy a SMTP server and let you app handle
sending the email out. There are other options, but I am not sure exactly
where you want to go with this.

Can you provide a better idea of what you want to do with OE?

HTH,

Bill P.
 
Bill Priess said:
For IE:

System.Dianogstics.Process.Start("http://some_site.some_domain"); thanks, it works
That will bring up the default browser.

For OE, not totally sure that it is possible using Process.Start(). I
searched but could not find a listing of command line arguments for OE. In
fact, doing a msimn.exe -?, /?, or just --help just launched OE.
when I launch it in this way(via cmd.exe), just OE starts, and there're no
information in console
Are you doing this on a Windows form or in ASP.NET? I am assuming a
Windows
I do this on W.F.
form since you are using Process. For the email, you may want to use .NET
built in System.Web.Mail and specifiy a SMTP server and let you app handle
sending the email out. There are other options, but I am not sure exactly
where you want to go with this.

Can you provide a better idea of what you want to do with OE?
I just want to open OE and "New Message" window, placing in "To" edit field
adress, which has been clicked.
P.S. the same as in html
 
Bill Priess said:
got it... for OE:

Same thing as for opening IE:
System.Dianogstics.Process.Start("mailto:some_person@some_site.some_domain")
;

Worked like a charm on my machine.. I had forgotten that mailto: is a
registered handler...

HTH,

Bill P.

thanks
 
got it... for OE:

Same thing as for opening IE:
System.Dianogstics.Process.Start("mailto:some_person@some_site.some_domain")
;

Worked like a charm on my machine.. I had forgotten that mailto: is a
registered handler...

HTH,

Bill P.
 
Back
Top