PC Review


Reply
Thread Tools Rate Thread

Creating Outlook "Task" email without using OOM

 
 
DanzerGal
Guest
Posts: n/a
 
      16th Dec 2008
Hi,

I'm hoping to create Outlook (2007) Tasks email from a standalone app w/o
using OOM (similar to creating an OL appoinement by sending a vCal item over
email). Can someone provide any example (or references)?

Alternatively, what are the specifications for the TNEF attachments in
Winmail.dat?

Any help or ideas will be greatly appreciated.
Thanks
DG.
 
Reply With Quote
 
 
 
 
Ken Slovak - [MVP - Outlook]
Guest
Posts: n/a
 
      16th Dec 2008
TNEF is undocumented, you have to reverse engineer it. Why not use the OOM?
Or an alternate API such as Redemption or Simple MAPI?

--
Ken Slovak
[MVP - Outlook]
http://www.slovaktech.com
Author: Professional Programming Outlook 2007.
Reminder Manager, Extended Reminders, Attachment Options.
http://www.slovaktech.com/products.htm


"DanzerGal" <(E-Mail Removed)> wrote in message
news:128F9A8A-BDDC-4D0A-AC9B-(E-Mail Removed)...
> Hi,
>
> I'm hoping to create Outlook (2007) Tasks email from a standalone app w/o
> using OOM (similar to creating an OL appoinement by sending a vCal item
> over
> email). Can someone provide any example (or references)?
>
> Alternatively, what are the specifications for the TNEF attachments in
> Winmail.dat?
>
> Any help or ideas will be greatly appreciated.
> Thanks
> DG.


 
Reply With Quote
 
DanzerGal
Guest
Posts: n/a
 
      16th Dec 2008
Hi Ken,

Thanks for the reply. I have two follow-up questions:

1. Isn't Simple MAPI just a transport/messaging mechanism. In using Simple
MAPI, I am unsure on how to generate the OL Task payload. Any suggestions?

2, For Redemption, same question: How to generate the payload (or, what is
the format of the payload) so that OL will recognize the incoming message as
a "Task" request and process it accordingly?

The reason why I am not using OOM is because the OL Task may need to be
generated from systems where OL is not installed.

Thanks,
DG.

"Ken Slovak - [MVP - Outlook]" wrote:

> TNEF is undocumented, you have to reverse engineer it. Why not use the OOM?
> Or an alternate API such as Redemption or Simple MAPI?
>
> --
> Ken Slovak
> [MVP - Outlook]
> http://www.slovaktech.com
> Author: Professional Programming Outlook 2007.
> Reminder Manager, Extended Reminders, Attachment Options.
> http://www.slovaktech.com/products.htm
>
>
> "DanzerGal" <(E-Mail Removed)> wrote in message
> news:128F9A8A-BDDC-4D0A-AC9B-(E-Mail Removed)...
> > Hi,
> >
> > I'm hoping to create Outlook (2007) Tasks email from a standalone app w/o
> > using OOM (similar to creating an OL appoinement by sending a vCal item
> > over
> > email). Can someone provide any example (or references)?
> >
> > Alternatively, what are the specifications for the TNEF attachments in
> > Winmail.dat?
> >
> > Any help or ideas will be greatly appreciated.
> > Thanks
> > DG.

>
>

 
Reply With Quote
 
Ken Slovak - [MVP - Outlook]
Guest
Posts: n/a
 
      17th Dec 2008
Is this a task or an email or what? You mentioned originally a task email
which is confusing. Simple MAPI calls can be used to create a mail item, not
a task item.

Redemption is a 3rd party library (www.dimastr.com/redemption). It can be
used to create a new Task item but it would expect Outlook to be there on
the machine or the standalone server-side Extended MAPI to be there. Even
without Outlook installed it would want to work with an Exchange mailbox.

If there's no Outlook or Exchange then you wouldn't use Redemption or CDO
1.21.

I think your requirements are setting you up for failure.

--
Ken Slovak
[MVP - Outlook]
http://www.slovaktech.com
Author: Professional Programming Outlook 2007.
Reminder Manager, Extended Reminders, Attachment Options.
http://www.slovaktech.com/products.htm


"DanzerGal" <(E-Mail Removed)> wrote in message
news:8761BC9F-3D6E-46AF-83A7-(E-Mail Removed)...
> Hi Ken,
>
> Thanks for the reply. I have two follow-up questions:
>
> 1. Isn't Simple MAPI just a transport/messaging mechanism. In using
> Simple
> MAPI, I am unsure on how to generate the OL Task payload. Any
> suggestions?
>
> 2, For Redemption, same question: How to generate the payload (or, what
> is
> the format of the payload) so that OL will recognize the incoming message
> as
> a "Task" request and process it accordingly?
>
> The reason why I am not using OOM is because the OL Task may need to be
> generated from systems where OL is not installed.
>
> Thanks,
> DG.


 
Reply With Quote
 
DanzerGal
Guest
Posts: n/a
 
      17th Dec 2008
Hi Ken,

Thank you for all the information. To answer your questions (and clarify my
original question):

In OL, one can create a Task and assign it to a second user. The Task
(request) may be sent via email (as a Winmail.dat TNEF attachment) to the
second user. If the recipient is using OL, it will automatically recognize
that the incoming email contains a Task (request) and process it accordingly
(prompt user for accept/reject, enter the Task into the Task folder, etc.).

As an analogy, a standard calendar appointment may be created by an external
party/application and sent via email. When the email arrives, OL will
recognize the content as an appointment request and process it accordingly.
In this case, the email just need to be a properly formatted vCal message (or
attachment), typically encoded as plain text.

My question is: what needs to be in the payload (contents of the
Winmail.dat file) of the incoming email for OL to recognize it as an Task
request? I am already able to send a regular SMTP message with attachments;
just like to know what content (or attachment) to send.

One caveat: the app that creates the original Task request may not be
installed on a host that has either OL or Exchange access. This was not a
problem with a calendar appointment as a vCal file is in plain text that one
can generate programmatically. But, I am looking to send a Task request
instead--hence my original question.

Any suggestions or directions to look will be greatly, greatly appreciated!

Thanks,
DG.




"Ken Slovak - [MVP - Outlook]" wrote:

> Is this a task or an email or what? You mentioned originally a task email
> which is confusing. Simple MAPI calls can be used to create a mail item, not
> a task item.
>
> Redemption is a 3rd party library (www.dimastr.com/redemption). It can be
> used to create a new Task item but it would expect Outlook to be there on
> the machine or the standalone server-side Extended MAPI to be there. Even
> without Outlook installed it would want to work with an Exchange mailbox.
>
> If there's no Outlook or Exchange then you wouldn't use Redemption or CDO
> 1.21.
>
> I think your requirements are setting you up for failure.
>
> --
> Ken Slovak
> [MVP - Outlook]
> http://www.slovaktech.com
> Author: Professional Programming Outlook 2007.
> Reminder Manager, Extended Reminders, Attachment Options.
> http://www.slovaktech.com/products.htm
>
>
> "DanzerGal" <(E-Mail Removed)> wrote in message
> news:8761BC9F-3D6E-46AF-83A7-(E-Mail Removed)...
> > Hi Ken,
> >
> > Thanks for the reply. I have two follow-up questions:
> >
> > 1. Isn't Simple MAPI just a transport/messaging mechanism. In using
> > Simple
> > MAPI, I am unsure on how to generate the OL Task payload. Any
> > suggestions?
> >
> > 2, For Redemption, same question: How to generate the payload (or, what
> > is
> > the format of the payload) so that OL will recognize the incoming message
> > as
> > a "Task" request and process it accordingly?
> >
> > The reason why I am not using OOM is because the OL Task may need to be
> > generated from systems where OL is not installed.
> >
> > Thanks,
> > DG.

>
>

 
Reply With Quote
 
Ken Slovak - [MVP - Outlook]
Guest
Posts: n/a
 
      17th Dec 2008
Outside of the Outlook team I don't think anyone knows what the contents of
the TNEF in a task request consists of. I certainly don't and have never
seen or heard any information on that. So you'd have to reverse engineer the
TNEF (if possible).

--
Ken Slovak
[MVP - Outlook]
http://www.slovaktech.com
Author: Professional Programming Outlook 2007.
Reminder Manager, Extended Reminders, Attachment Options.
http://www.slovaktech.com/products.htm


"DanzerGal" <(E-Mail Removed)> wrote in message
news:9A719046-630E-4219-B7DA-(E-Mail Removed)...
> Hi Ken,
>
> Thank you for all the information. To answer your questions (and clarify
> my
> original question):
>
> In OL, one can create a Task and assign it to a second user. The Task
> (request) may be sent via email (as a Winmail.dat TNEF attachment) to the
> second user. If the recipient is using OL, it will automatically
> recognize
> that the incoming email contains a Task (request) and process it
> accordingly
> (prompt user for accept/reject, enter the Task into the Task folder,
> etc.).
>
> As an analogy, a standard calendar appointment may be created by an
> external
> party/application and sent via email. When the email arrives, OL will
> recognize the content as an appointment request and process it
> accordingly.
> In this case, the email just need to be a properly formatted vCal message
> (or
> attachment), typically encoded as plain text.
>
> My question is: what needs to be in the payload (contents of the
> Winmail.dat file) of the incoming email for OL to recognize it as an Task
> request? I am already able to send a regular SMTP message with
> attachments;
> just like to know what content (or attachment) to send.
>
> One caveat: the app that creates the original Task request may not be
> installed on a host that has either OL or Exchange access. This was not a
> problem with a calendar appointment as a vCal file is in plain text that
> one
> can generate programmatically. But, I am looking to send a Task request
> instead--hence my original question.
>
> Any suggestions or directions to look will be greatly, greatly
> appreciated!
>
> Thanks,
> DG.


 
Reply With Quote
 
DanzerGal
Guest
Posts: n/a
 
      17th Dec 2008
Hello Ken,

I was afraid you'd say that.

Is the "Task" specification proprietary? Will the OL team folks care to
discuss this?

Thanks,
DG.


"Ken Slovak - [MVP - Outlook]" wrote:

> Outside of the Outlook team I don't think anyone knows what the contents of
> the TNEF in a task request consists of. I certainly don't and have never
> seen or heard any information on that. So you'd have to reverse engineer the
> TNEF (if possible).
>
> --
> Ken Slovak
> [MVP - Outlook]
> http://www.slovaktech.com
> Author: Professional Programming Outlook 2007.
> Reminder Manager, Extended Reminders, Attachment Options.
> http://www.slovaktech.com/products.htm
>
>
> "DanzerGal" <(E-Mail Removed)> wrote in message
> news:9A719046-630E-4219-B7DA-(E-Mail Removed)...
> > Hi Ken,
> >
> > Thank you for all the information. To answer your questions (and clarify
> > my
> > original question):
> >
> > In OL, one can create a Task and assign it to a second user. The Task
> > (request) may be sent via email (as a Winmail.dat TNEF attachment) to the
> > second user. If the recipient is using OL, it will automatically
> > recognize
> > that the incoming email contains a Task (request) and process it
> > accordingly
> > (prompt user for accept/reject, enter the Task into the Task folder,
> > etc.).
> >
> > As an analogy, a standard calendar appointment may be created by an
> > external
> > party/application and sent via email. When the email arrives, OL will
> > recognize the content as an appointment request and process it
> > accordingly.
> > In this case, the email just need to be a properly formatted vCal message
> > (or
> > attachment), typically encoded as plain text.
> >
> > My question is: what needs to be in the payload (contents of the
> > Winmail.dat file) of the incoming email for OL to recognize it as an Task
> > request? I am already able to send a regular SMTP message with
> > attachments;
> > just like to know what content (or attachment) to send.
> >
> > One caveat: the app that creates the original Task request may not be
> > installed on a host that has either OL or Exchange access. This was not a
> > problem with a calendar appointment as a vCal file is in plain text that
> > one
> > can generate programmatically. But, I am looking to send a Task request
> > instead--hence my original question.
> >
> > Any suggestions or directions to look will be greatly, greatly
> > appreciated!
> >
> > Thanks,
> > DG.

>
>

 
Reply With Quote
 
Ken Slovak - [MVP - Outlook]
Guest
Posts: n/a
 
      18th Dec 2008
All the TNEF used for everything is not documented (at least outside of MS).
I doubt that you'd get anywhere trying to get internal documentation, as far
as I know reverse engineering is the only way you'd figure it out if you can
reverse engineer the TNEF.

You can try contacting MS about this but I think you'll be wasting your time
and money.

--
Ken Slovak
[MVP - Outlook]
http://www.slovaktech.com
Author: Professional Programming Outlook 2007.
Reminder Manager, Extended Reminders, Attachment Options.
http://www.slovaktech.com/products.htm


"DanzerGal" <(E-Mail Removed)> wrote in message
news:B25BF0BD-C4B5-478D-A142-(E-Mail Removed)...
> Hello Ken,
>
> I was afraid you'd say that.
>
> Is the "Task" specification proprietary? Will the OL team folks care to
> discuss this?
>
> Thanks,
> DG.


 
Reply With Quote
 
DanzerGal
Guest
Posts: n/a
 
      19th Dec 2008
Hi Ken,

Thank you for your pointers. I will re-evaluate the solution requirements
and pursuit other means if needed.

Regards,
DG.

"Ken Slovak - [MVP - Outlook]" wrote:

> All the TNEF used for everything is not documented (at least outside of MS).
> I doubt that you'd get anywhere trying to get internal documentation, as far
> as I know reverse engineering is the only way you'd figure it out if you can
> reverse engineer the TNEF.
>
> You can try contacting MS about this but I think you'll be wasting your time
> and money.
>
> --
> Ken Slovak
> [MVP - Outlook]
> http://www.slovaktech.com
> Author: Professional Programming Outlook 2007.
> Reminder Manager, Extended Reminders, Attachment Options.
> http://www.slovaktech.com/products.htm
>
>
> "DanzerGal" <(E-Mail Removed)> wrote in message
> news:B25BF0BD-C4B5-478D-A142-(E-Mail Removed)...
> > Hello Ken,
> >
> > I was afraid you'd say that.
> >
> > Is the "Task" specification proprietary? Will the OL team folks care to
> > discuss this?
> >
> > Thanks,
> > DG.

>
>

 
Reply With Quote
 
Peter Jamieson
Guest
Posts: n/a
 
      2nd Jan 2009
MS has posted a lot more info. about its proprietary standards over the
last few months, e.g. in the MSDN library - for example, here is a
document about TNEF at http://msdn.microsoft.com/en-us/library/cc425498.aspx

There are also documents about task items /in MS Exchange/ etc.

Whether these are the standards you need, or complete enough for your
needs, I couldn't tell you. (FWIW at least some of these "Open
Specification" documents are works in progress)

Peter Jamieson

http://tips.pjmsn.me.uk

DanzerGal wrote:
> Hi Ken,
>
> Thank you for your pointers. I will re-evaluate the solution requirements
> and pursuit other means if needed.
>
> Regards,
> DG.
>
> "Ken Slovak - [MVP - Outlook]" wrote:
>
>> All the TNEF used for everything is not documented (at least outside of MS).
>> I doubt that you'd get anywhere trying to get internal documentation, as far
>> as I know reverse engineering is the only way you'd figure it out if you can
>> reverse engineer the TNEF.
>>
>> You can try contacting MS about this but I think you'll be wasting your time
>> and money.
>>
>> --
>> Ken Slovak
>> [MVP - Outlook]
>> http://www.slovaktech.com
>> Author: Professional Programming Outlook 2007.
>> Reminder Manager, Extended Reminders, Attachment Options.
>> http://www.slovaktech.com/products.htm
>>
>>
>> "DanzerGal" <(E-Mail Removed)> wrote in message
>> news:B25BF0BD-C4B5-478D-A142-(E-Mail Removed)...
>>> Hello Ken,
>>>
>>> I was afraid you'd say that.
>>>
>>> Is the "Task" specification proprietary? Will the OL team folks care to
>>> discuss this?
>>>
>>> Thanks,
>>> DG.

>>

 
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
Outlook 2007 - "Task" Goes to Windows Taskbar After Sending Email Infoman Microsoft Outlook Discussion 0 24th Aug 2008 07:26 PM
Outlook email should have a "save as" a Task, Calendar, or Note. =?Utf-8?B?bG9mdG9uamVyb21l?= Microsoft Outlook Discussion 0 12th Jan 2006 05:06 PM
How to create the "New Appointment", "New Task" and "New Email Message" shortcut? Juan I. Cahis Windows XP General 2 30th Sep 2004 05:05 PM
"Save Task list Order" Keeps popping up when creating task - CEO Must have fixed! Tom Microsoft Outlook Discussion 1 7th Aug 2003 11:23 PM
"Save Task list Order" Keeps popping up when creating task - CEO Must have fixed! Tom Microsoft Outlook 1 7th Aug 2003 11:23 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 01:23 AM.