Re: Launching email client

2011-09-20 Thread Richard Mason
Hi Greg,

You're looking at the results of a URL protocol handler. See here for more
info: http://msdn.microsoft.com/en-us/library/aa767914(v=vs.85).aspx

ciao, Richard

Aussie Bushwalking
It's like Wikipedia... but for Bushwalkers!
http://www.aussiebushwalking.com/

On Wed, Sep 21, 2011 at 1:18 PM, Greg Keogh  wrote:

> *Ye I think this whole naked bear wrestling thing is a wonderful idea.
> Perhaps @ the next TechEd or CodeCamp Greg could do something like this. I
> for one would pay good money to see it :)*
>
> ** **
>
> If you double my pay I’ll do it in a pit full of cobras.
>
> ** **
>
> But seriously, I was just about to post a question asking if there was a
> reasonably reliable of a launching the current user’s email client with an
> open email message (the same way as clicking a mailto:xxx link works).
> Just for the hellovit I did this:
>
> ** **
>
> System.Diagnostics.Process.Start("mailto:g...@mira.net?subject=Hello
> World&foo=bar");
>
> ** **
>
> And it works! Lord knows who or what is magically parsing this string, but
> it launches an Outlook new email window with the subject set to "Hello
> World". The keyword "mailto:"; must mean something to someone. So there’s
> some handy news.
>
> ** **
>
> Greg
>


RE: Launching email client

2011-09-20 Thread Greg Keogh
You're looking at the results of a URL protocol handler. See here for more
info: http://msdn.microsoft.com/en-us/library/aa767914(v=vs.85).aspx

 

Aha! You can see them under here:

 

HKEY_CLASSES_ROOT\PROTOCOLS\Handler

 

Greg



Re: Launching email client

2011-09-20 Thread Stephen Price
I'm looking for;

System.Diagnostics.Process.Start("wrestle:g...@mira.net
?subject=grizzly&option=cobras");

Seriously though, only double your pay? We could pass around a collection
tin and make this happen guys!

On Wed, Sep 21, 2011 at 11:18 AM, Greg Keogh  wrote:

> *Ye I think this whole naked bear wrestling thing is a wonderful idea.
> Perhaps @ the next TechEd or CodeCamp Greg could do something like this. I
> for one would pay good money to see it :)*
>
> ** **
>
> If you double my pay I’ll do it in a pit full of cobras.
>
> ** **
>
> But seriously, I was just about to post a question asking if there was a
> reasonably reliable of a launching the current user’s email client with an
> open email message (the same way as clicking a mailto:xxx link works).
> Just for the hellovit I did this:
>
> ** **
>
> System.Diagnostics.Process.Start("mailto:g...@mira.net?subject=Hello
> World&foo=bar");
>
> ** **
>
> And it works! Lord knows who or what is magically parsing this string, but
> it launches an Outlook new email window with the subject set to "Hello
> World". The keyword "mailto:"; must mean something to someone. So there’s
> some handy news.
>
> ** **
>
> Greg
>


Re: Launching email client

2011-09-20 Thread noonie
Cool...

WOAH!

"CDL: Asychronous Pluggable Protocol Handler"

Even Google returns results for Asynchronous and that key is littered with
the mis-spelt Asychronous...

Now to find out what CDL and friends are...

-- 
noonie

On 21 September 2011 13:50, Greg Keogh  wrote:

> PROTOCOLS


RE: Launching email client

2011-09-20 Thread Peter Maddin
Hi Greg

 

I have used this class 

 

https://blazeapps.svn.codeplex.com/svn/BlazeAppplications/BA/Mail/MapiUtilit
y.cs

 

I wanted to invoke the existing clients default email client and pass
information including attachments to it.

 

I did not want to write an embedded email client using either smtp/pop3/imap
or  mapi or web services (although I have tools to do this and have done
this previously).

 

It works most times. Sometimes, it the client has their email client open,
it does not work.

 

I have tried it with outlook and thunderbird. Had both installed and changed
the default email client to make sure it worked with both.

 

Regards Peter Maddin
Applications Development Officer
PathWest Laboratory Medicine WA
Phone : +618 6396 4285
Mobile: 0423 540 825 
E-Mail : petermad...@iinet.net.au; peter.mad...@health.wa.gov.au
The contents of this e-mail transmission outside of the WAGHS network are
intended solely for the named recipient's), may be confidential, and may be
privileged or otherwise protected from disclosure in the public interest.
The use, reproduction, disclosure or distribution of the contents of this
e-mail transmission by any person other than the named recipient(s) is
prohibited. If you are not a named recipient please notify the sender
immediately.

 

 

From: ozdotnet-boun...@ozdotnet.com [mailto:ozdotnet-boun...@ozdotnet.com]
On Behalf Of Greg Keogh
Sent: Wednesday, 21 September 2011 11:51 AM
To: 'ozDotNet'
Subject: RE: Launching email client

 

You're looking at the results of a URL protocol handler. See here for more
info: http://msdn.microsoft.com/en-us/library/aa767914(v=vs.85).aspx

 

Aha! You can see them under here:

 

HKEY_CLASSES_ROOT\PROTOCOLS\Handler

 

Greg



RE: Launching email client

2011-09-20 Thread Ian Thomas
CDL - http://en.wikipedia.org/wiki/Common_Data_Link (military protocol) ?
established 1991 

 

There is a W3C spec for WS-CDL so maybe that's what the asy(n)chronous
pluggable derives from. 

 

The MSDN docs surrounding this URL
<http://msdn.microsoft.com/en-us/library/aa767739(v=VS.85).aspx>  are
interesting. 

  _  

Ian Thomas
Victoria Park, Western Australia

  _  

From: ozdotnet-boun...@ozdotnet.com [mailto:ozdotnet-boun...@ozdotnet.com]
On Behalf Of noonie
Sent: Wednesday, September 21, 2011 12:40 PM
To: ozDotNet
Subject: Re: Launching email client

 

Cool...

 

WOAH! 

 

"CDL: Asychronous Pluggable Protocol Handler"

 

Even Google returns results for Asynchronous and that key is littered with
the mis-spelt Asychronous...

 

Now to find out what CDL and friends are...

 

-- 
noonie

 

On 21 September 2011 13:50, Greg Keogh  wrote:

PROTOCOLS

 



Re: Launching email client

2011-09-20 Thread noonie
Thanks,

There's a whole bunch of interesting protocols in there.

And who uses gopher anymore anyway...

-- 
Regards,
noonie

On 21 September 2011 15:01, Ian Thomas  wrote:

>  CDL - http://en.wikipedia.org/wiki/Common_Data_Link (military protocol) ?
> established 1991 
>
> ** **
>
> There is a W3C spec for WS-CDL so maybe that’s what the asy(n)chronous
> pluggable derives from. 
>
> ** **
>
> The MSDN docs surrounding this 
> URL<http://msdn.microsoft.com/en-us/library/aa767739(v=VS.85).aspx>are 
> interesting.
> 
>  --
>
> **Ian Thomas**
> Victoria Park, Western Australia
>   --
>
> *From:* ozdotnet-boun...@ozdotnet.com [mailto:
> ozdotnet-boun...@ozdotnet.com] *On Behalf Of *noonie
> *Sent:* Wednesday, September 21, 2011 12:40 PM
> *To:* ozDotNet
> *Subject:* Re: Launching email client
>
> ** **
>
> Cool...
>
> ** **
>
> WOAH! 
>
> ** **
>
> "CDL: Asychronous Pluggable Protocol Handler"
>
> ** **
>
> Even Google returns results for Asynchronous and that key is littered with
> the mis-spelt Asychronous...
>
> ** **
>
> Now to find out what CDL and friends are...
>
> ** **
>
> --
> noonie
>
> ** **
>
> On 21 September 2011 13:50, Greg Keogh  wrote:
>
> PROTOCOLS
>
> ** **
>


RE: Launching email client

2011-09-20 Thread Greg Keogh
>... the client has their email client open, it does not work.

 

The problem you describe is happening to me consistently with Outlook 2007.

 

In any case it's an interesting piece of code.

 

Greg



RE: Launching email client

2011-09-20 Thread Peter Maddin
After the client clicks on the button I post a message saying to the client
that the email client should open.

If it does not, close any open session and try again.

All they have to do is close any email window and click on the button again.

 

Regards Peter Maddin
Applications Development Officer
PathWest Laboratory Medicine WA
Phone : +618 6396 4285
Mobile: 0423 540 825 
E-Mail : petermad...@iinet.net.au; peter.mad...@health.wa.gov.au
The contents of this e-mail transmission outside of the WAGHS network are
intended solely for the named recipient's), may be confidential, and may be
privileged or otherwise protected from disclosure in the public interest.
The use, reproduction, disclosure or distribution of the contents of this
e-mail transmission by any person other than the named recipient(s) is
prohibited. If you are not a named recipient please notify the sender
immediately.

 

 

From: ozdotnet-boun...@ozdotnet.com [mailto:ozdotnet-boun...@ozdotnet.com]
On Behalf Of Greg Keogh
Sent: Wednesday, 21 September 2011 2:02 PM
To: 'ozDotNet'
Subject: RE: Launching email client

 

>... the client has their email client open, it does not work.

 

The problem you describe is happening to me consistently with Outlook 2007.

 

In any case it's an interesting piece of code.

 

Greg