A Microsoft Outlook email forum. Outlook Banter

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » Outlook Banter forum » Microsoft Outlook Email Newsgroups » Add-ins for Outlook
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

How to prevent winmail.dat from being sent with message?



 
 
Thread Tools Search this Thread Display Modes
  #1  
Old July 4th 07, 02:49 PM posted to microsoft.public.developer.outlook.addins,microsoft.public.outlook.program_addins
Henry Gusakovsky
external usenet poster
 
Posts: 4
Default How to prevent winmail.dat from being sent with message?

On 4 , 00:09, "Mark Beiley" nowhere AT donotuse.com wrote:
I'm using MAPI to send an email with my Outlook add-in. Sometimes the
emails are sent with a winmail.dat attachment when sending through an
Exchange server. I'm trying to figure out how to prevent this from within
my add-in? I've read this:

http://support.microsoft.com/kb/138053

but in my case I'm adding the recipients dynamically, and they aren't in any
address book. I also don't have control over how they've configured their
Internet Mail Connector (IMC).

I'm wondering if any of these will help me?:

PR_SEND_INTERNET_ENCODING
PR_SEND_RICH_INFO

set PR_SEND_RICH_INFO = FALSE while adding recipients.
Even if you created OneOff entryid for recipient with RICH_INFO flag
PR_SEND_RICH_INFO property will override this setting.

Regards
Henry

  #2  
Old July 4th 07, 05:43 PM posted to microsoft.public.developer.outlook.addins,microsoft.public.outlook.program_addins
Dmitry Streblechenko
external usenet poster
 
Posts: 2,116
Default How to prevent winmail.dat from being sent with message?

And UseTnef ({00062008-0000-0000-C000-000000000046}, 0x8582, PT_BOOLEAN)
will override them both.


Dmitry Streblechenko (MVP)
http://www.dimastr.com/
OutlookSpy - Outlook, CDO
and MAPI Developer Tool

"Henry Gusakovsky" wrote in message
oups.com...
On 4 , 00:09, "Mark Beiley" nowhere AT donotuse.com wrote:
I'm using MAPI to send an email with my Outlook add-in. Sometimes the
emails are sent with a winmail.dat attachment when sending through an
Exchange server. I'm trying to figure out how to prevent this from
within
my add-in? I've read this:

http://support.microsoft.com/kb/138053

but in my case I'm adding the recipients dynamically, and they aren't in
any
address book. I also don't have control over how they've configured
their
Internet Mail Connector (IMC).

I'm wondering if any of these will help me?:

PR_SEND_INTERNET_ENCODING
PR_SEND_RICH_INFO

set PR_SEND_RICH_INFO = FALSE while adding recipients.
Even if you created OneOff entryid for recipient with RICH_INFO flag
PR_SEND_RICH_INFO property will override this setting.

Regards
Henry



  #3  
Old July 4th 07, 08:42 PM posted to microsoft.public.developer.outlook.addins,microsoft.public.outlook.program_addins
Mark Beiley
external usenet poster
 
Posts: 22
Default How to prevent winmail.dat from being sent with message?

Thanks Henry/Dmitry. I tried setting UseTnef to false, but it didn't fix
the problem (winmail.dat was still sent). I didn't set UseTnef as a "named
property", but instead used the property tag (PT_BOOLEAN and 0x80DD), as
found through OutlookSpy. Afterwards, I did verify that the property was
set okay, so I think I accomplished getting the right propert set. Is this
okay? Here is my code:

int nFields;
SPropValue *pNewProps = NULL;
LPSPropValue pProp = NULL;

nFields = 1;
MAPIAllocateBuffer((nFields * sizeof(SPropValue)), (LPVOID*)&pNewProps));
ZeroMemory(pNewProps, nFields * sizeof(SPropValue));

pProp = &pNewProps[0];
pProp-ulPropTag = PROP_TAG( PT_BOOLEAN, 0x80DD ); // UseTNEF
pProp-Value.b = 0;

((LPMAPIPROP)(IUnknown*)pMAPIMessage)-SetProps(nFields, pNewProps, NULL);

My actual code had error checking, but I took it out for easier reading
here. The code did execute without errors.

Next I'll try setting both UseTNEF to false, and also on the recipient
setting PR_SEND_RICH_INFO = FALSE to see if that helps. I'll post the
results here...

Thanks,
Mark
http://www.email-announcer.com



"Dmitry Streblechenko" wrote in message
...
And UseTnef ({00062008-0000-0000-C000-000000000046}, 0x8582, PT_BOOLEAN)
will override them both.


Dmitry Streblechenko (MVP)
http://www.dimastr.com/
OutlookSpy - Outlook, CDO
and MAPI Developer Tool

"Henry Gusakovsky" wrote in message
oups.com...
On 4 , 00:09, "Mark Beiley" nowhere AT donotuse.com wrote:
I'm using MAPI to send an email with my Outlook add-in. Sometimes the
emails are sent with a winmail.dat attachment when sending through an
Exchange server. I'm trying to figure out how to prevent this from
within
my add-in? I've read this:

http://support.microsoft.com/kb/138053

but in my case I'm adding the recipients dynamically, and they aren't in
any
address book. I also don't have control over how they've configured
their
Internet Mail Connector (IMC).

I'm wondering if any of these will help me?:

PR_SEND_INTERNET_ENCODING
PR_SEND_RICH_INFO

set PR_SEND_RICH_INFO = FALSE while adding recipients.
Even if you created OneOff entryid for recipient with RICH_INFO flag
PR_SEND_RICH_INFO property will override this setting.

Regards
Henry




  #4  
Old July 4th 07, 10:22 PM posted to microsoft.public.developer.outlook.addins,microsoft.public.outlook.program_addins
Dmitry Streblechenko
external usenet poster
 
Posts: 2,116
Default How to prevent winmail.dat from being sent with message?

You should never hardcode the values of the named prop tags - use
GetIDsFromNames.

Dmitry Streblechenko (MVP)
http://www.dimastr.com/
OutlookSpy - Outlook, CDO
and MAPI Developer Tool

"Mark Beiley" nowhere AT donotuse.com wrote in message
...
Thanks Henry/Dmitry. I tried setting UseTnef to false, but it didn't fix
the problem (winmail.dat was still sent). I didn't set UseTnef as a
"named property", but instead used the property tag (PT_BOOLEAN and
0x80DD), as found through OutlookSpy. Afterwards, I did verify that the
property was set okay, so I think I accomplished getting the right propert
set. Is this okay? Here is my code:

int nFields;
SPropValue *pNewProps = NULL;
LPSPropValue pProp = NULL;

nFields = 1;
MAPIAllocateBuffer((nFields * sizeof(SPropValue)), (LPVOID*)&pNewProps));
ZeroMemory(pNewProps, nFields * sizeof(SPropValue));

pProp = &pNewProps[0];
pProp-ulPropTag = PROP_TAG( PT_BOOLEAN, 0x80DD ); // UseTNEF
pProp-Value.b = 0;

((LPMAPIPROP)(IUnknown*)pMAPIMessage)-SetProps(nFields, pNewProps, NULL);

My actual code had error checking, but I took it out for easier reading
here. The code did execute without errors.

Next I'll try setting both UseTNEF to false, and also on the recipient
setting PR_SEND_RICH_INFO = FALSE to see if that helps. I'll post the
results here...

Thanks,
Mark
http://www.email-announcer.com



"Dmitry Streblechenko" wrote in message
...
And UseTnef ({00062008-0000-0000-C000-000000000046}, 0x8582, PT_BOOLEAN)
will override them both.


Dmitry Streblechenko (MVP)
http://www.dimastr.com/
OutlookSpy - Outlook, CDO
and MAPI Developer Tool

"Henry Gusakovsky" wrote in message
oups.com...
On 4 , 00:09, "Mark Beiley" nowhere AT donotuse.com wrote:
I'm using MAPI to send an email with my Outlook add-in. Sometimes the
emails are sent with a winmail.dat attachment when sending through an
Exchange server. I'm trying to figure out how to prevent this from
within
my add-in? I've read this:

http://support.microsoft.com/kb/138053

but in my case I'm adding the recipients dynamically, and they aren't
in any
address book. I also don't have control over how they've configured
their
Internet Mail Connector (IMC).

I'm wondering if any of these will help me?:

PR_SEND_INTERNET_ENCODING
PR_SEND_RICH_INFO
set PR_SEND_RICH_INFO = FALSE while adding recipients.
Even if you created OneOff entryid for recipient with RICH_INFO flag
PR_SEND_RICH_INFO property will override this setting.

Regards
Henry






  #5  
Old July 13th 07, 07:16 PM posted to microsoft.public.developer.outlook.addins,microsoft.public.outlook.program_addins
Mark Beiley
external usenet poster
 
Posts: 22
Default How to prevent winmail.dat from being sent with message?

FYI... This fixed my problem, thank you. I ended up setting both UseTNEF
to false, and also on the recipient setting PR_SEND_RICH_INFO to false also.
No more winmail.dat...

Thanks,
Mark
http://www.email-announcer.com



"Mark Beiley" nowhere AT donotuse.com wrote in message
...
Thanks Henry/Dmitry. I tried setting UseTnef to false, but it didn't fix
the problem (winmail.dat was still sent). I didn't set UseTnef as a
"named property", but instead used the property tag (PT_BOOLEAN and
0x80DD), as found through OutlookSpy. Afterwards, I did verify that the
property was set okay, so I think I accomplished getting the right propert
set. Is this okay? Here is my code:

int nFields;
SPropValue *pNewProps = NULL;
LPSPropValue pProp = NULL;

nFields = 1;
MAPIAllocateBuffer((nFields * sizeof(SPropValue)), (LPVOID*)&pNewProps));
ZeroMemory(pNewProps, nFields * sizeof(SPropValue));

pProp = &pNewProps[0];
pProp-ulPropTag = PROP_TAG( PT_BOOLEAN, 0x80DD ); // UseTNEF
pProp-Value.b = 0;

((LPMAPIPROP)(IUnknown*)pMAPIMessage)-SetProps(nFields, pNewProps, NULL);

My actual code had error checking, but I took it out for easier reading
here. The code did execute without errors.

Next I'll try setting both UseTNEF to false, and also on the recipient
setting PR_SEND_RICH_INFO = FALSE to see if that helps. I'll post the
results here...

Thanks,
Mark
http://www.email-announcer.com



"Dmitry Streblechenko" wrote in message
...
And UseTnef ({00062008-0000-0000-C000-000000000046}, 0x8582, PT_BOOLEAN)
will override them both.


Dmitry Streblechenko (MVP)
http://www.dimastr.com/
OutlookSpy - Outlook, CDO
and MAPI Developer Tool

"Henry Gusakovsky" wrote in message
oups.com...
On 4 , 00:09, "Mark Beiley" nowhere AT donotuse.com wrote:
I'm using MAPI to send an email with my Outlook add-in. Sometimes the
emails are sent with a winmail.dat attachment when sending through an
Exchange server. I'm trying to figure out how to prevent this from
within
my add-in? I've read this:

http://support.microsoft.com/kb/138053

but in my case I'm adding the recipients dynamically, and they aren't
in any
address book. I also don't have control over how they've configured
their
Internet Mail Connector (IMC).

I'm wondering if any of these will help me?:

PR_SEND_INTERNET_ENCODING
PR_SEND_RICH_INFO
set PR_SEND_RICH_INFO = FALSE while adding recipients.
Even if you created OneOff entryid for recipient with RICH_INFO flag
PR_SEND_RICH_INFO property will override this setting.

Regards
Henry





  #6  
Old October 5th 07, 12:45 PM posted to microsoft.public.outlook.program_addins
Vikrant Agarwal
external usenet poster
 
Posts: 2
Default winmail.dat

I need vb6 code for the same solution which uses MS outlook and Redemption objects.

help is appreciated.

A Womand Told Me
http://www.awomantoldme.com
  #7  
Old October 5th 07, 12:45 PM posted to microsoft.public.outlook.program_addins
Vikrant Agarwal
external usenet poster
 
Posts: 2
Default winmail.dat

I need vb 6.0 code for the same solution which uses MS outlook and Redemption objects.

help is appreciated.

A Womand Told Me
http://www.awomantoldme.com
  #8  
Old October 5th 07, 02:31 PM posted to microsoft.public.outlook.program_addins
Ken Slovak - [MVP - Outlook]
external usenet poster
 
Posts: 5,848
Default winmail.dat

What solution are you talking about? You have to provide details of what you
want, what version of Outlook you're using and what you're trying to
accomplish if you want answers.

--
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


Vikrant Agarwal wrote in message
...
I need vb 6.0 code for the same solution which uses MS outlook and
Redemption objects.

help is appreciated.

A Womand Told Me
http://www.awomantoldme.com


  #9  
Old August 7th 08, 12:34 AM posted to microsoft.public.outlook.program_addins
Huan Dao
external usenet poster
 
Posts: 1
Default I still have problem with winmail.dat

Here is my code:

const GUID GUIDUseTnef={0x00062008, 0x0000, 0x0000, 0xC0, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x46 };
MAPINAMEID namedProp;
namedProp.lpguid = (LPGUID)&GUIDUseTnef;
namedProp.ulKind = MNID_ID;
namedProp.Kind.lID = 0x8582;

LPMAPINAMEID lpNameID[1]={ &namedProp };
LPSPropTagArray lppPropTags;

if (m_pMessage-GetIDsFromNames(1,lpNameID,FALSE,&lppPropTags) == S_OK)
{
int nFieldType = PT_BOOLEAN;
prop.ulPropTag=(lppPropTags-aulPropTag[0]|nFieldType);
prop.Value.b = FALSE;
m_pMessage-SetProps(1,&prop,NULL);
MAPIFreeBuffer(lppPropTags);
}

Please let me know if something wrong with what I am doing.

Thanks in advance.
  #10  
Old September 20th 08, 06:29 AM posted to microsoft.public.outlook.program_addins
Nazish Sayeed
external usenet poster
 
Posts: 1
Default Winmail.dat resolution

For Microsoft Exchange 2007

Go to Microsoft Exchange console, expand organisation Configuration, click hub transport select remote domain. Go to the properties of remote domain click on format of original message sent as attachment to journal report.
Within charactor sets
MIME character Set....Select none
Non-MIME character set...select none.

Please reply if your problem solved
 




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
prevent e-mail message recipients automatically forward a message IH Outlook - Using Forms 3 November 1st 06 09:00 PM
winmail.dat Nicolas Macarez Outlook - General Queries 4 September 7th 06 07:52 AM
Prevent surrogate from reading a private message? KEB Outlook - Using Contacts 1 July 27th 06 06:23 PM
winmail.dat Boe Outlook - General Queries 5 February 7th 06 01:40 AM
winmail.dat file in forwarded message with attachment Andi Outlook - Installation 1 January 19th 06 02:23 AM


All times are GMT +1. The time now is 02:20 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.Search Engine Friendly URLs by vBSEO 2.4.0
Copyright ©2004-2025 Outlook Banter.
The comments are property of their posters.