![]() |
|
How to prevent winmail.dat from being sent with message?
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 Any tips would be greatly appreciated. Thanks, Mark http://www.email-announcer.com |
How to prevent winmail.dat from being sent with message?
Did you try the different address format suggested?
-- Sue Mosher, Outlook MVP Author of Microsoft Outlook 2007 Programming: Jumpstart for Power Users and Administrators http://www.outlookcode.com/article.aspx?id=54 "Mark Beiley" nowhere AT donotuse.com wrote in message ... 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 Any tips would be greatly appreciated. Thanks, Mark http://www.email-announcer.com |
How to prevent winmail.dat from being sent with message?
Most likely cause is a user property added to the message.
Add the following named property (known as UseTnef) and set it to false: {00062008-0000-0000-C000-000000000046}, 0x8582, PT_BOOLEAN Dmitry Streblechenko (MVP) http://www.dimastr.com/ OutlookSpy - Outlook, CDO and MAPI Developer Tool "Mark Beiley" nowhere AT donotuse.com wrote in message ... 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 Any tips would be greatly appreciated. Thanks, Mark http://www.email-announcer.com |
How to prevent winmail.dat from being sent with message?
Hi Sue,
I believe I'm already using the "One-Off Addressing" format they suggested. I'm setting the recipient properties like this: PR_EMAIL_ADDRESS : PR_DISPLAY_NAME : PR_RECIPIENT_TYPE : MAPI_TO PR_ADDRTYPE : SMTP Does that seem right to you, for the "SMTP address" format? I believe that the other format of "[SMTP:SMTP address]" would be something like this: PR_EMAIL_ADDRESS : ] Thanks, Mark http://www.email-announcer.com "Sue Mosher [MVP-Outlook]" wrote in message ... Did you try the different address format suggested? -- Sue Mosher, Outlook MVP Author of Microsoft Outlook 2007 Programming: Jumpstart for Power Users and Administrators http://www.outlookcode.com/article.aspx?id=54 "Mark Beiley" nowhere AT donotuse.com wrote in message ... 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 Any tips would be greatly appreciated. Thanks, Mark http://www.email-announcer.com |
How to prevent winmail.dat from being sent with message?
Thanks Dmitry. I'll try this. I have to wait for help from the customer
who is experiencing this problem to test it out. Thanks, Mark http://www.email-announcer.com "Dmitry Streblechenko" wrote in message ... Most likely cause is a user property added to the message. Add the following named property (known as UseTnef) and set it to false: {00062008-0000-0000-C000-000000000046}, 0x8582, PT_BOOLEAN Dmitry Streblechenko (MVP) http://www.dimastr.com/ OutlookSpy - Outlook, CDO and MAPI Developer Tool "Mark Beiley" nowhere AT donotuse.com wrote in message ... 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 Any tips would be greatly appreciated. Thanks, Mark http://www.email-announcer.com |
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 |
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 |
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 |
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 |
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 |
All times are GMT +1. The time now is 12:32 PM. |
|
Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 2.4.0
Copyright ©2004-2006 OutlookBanter.com