Thanks but not quite there yet

  • Thread starter Thread starter Zack
  • Start date Start date
Z

Zack

Thanks for the reply but the object is not just to send
email but to open outlook express or outlook and use it to
compose and send email. Can you help me with that please?

The behavior of my application should be identical to the
case of clicking on an email address in internet explorer.
I want to bring up mail client software exactly like
internet explorer does.
 
Hi

System.Diagnostics.Process.Start("mailto:[email protected]?subject=test");

You should naturally replace the actual email address and subject with the
relevant email address and subject.

Chris Taylor
 
did you read my reply?
<quote>
if you just want to use outlook\outlook express (pretty sure outlook works
with this too, don't have it on this machine to test)
this code will do it, you'll have to put a little work into filling in the
address & subject, but it will work.
System.Diagnostics.Process.Start("mailto:email@address?subject=my subject");
</quote>
 
Hi again,

However, I'm very tired and I didn't read your post fully - I
thought you wanted more precise control.

Go with Chris and Daniel.
(And thank them profusely.)

Regards,
Fergus
 
How does the visibility of objects work in VB. I am pretty
sure i have to do something extra to mimic the following
line from VB to C#

Private g_oOutlook As Outlook.Application

How do i make Outlook.Application datatype visible in my
C# code?
 
Thanks.. :)
-----Original Message-----
Then you should have replied more specifically bout what you've read, so you
don't confuse people, ;).

As far as i know, and i could be wrong, outlook express doesn't have an
automation interface.

Outlook does, you can use the outlook XP PIA (available from microsoft) and
follow some of the suggestions from fergus to create an Outlook.Application
object.
I havn't played with it in C# yet, but it can be done. Read up a bit on the
Outlook object model and familiarize yourself with how it works (should be
available on msdn atleast).




.
 
Back
Top