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 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
  #2  
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
  #3  
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.
  #4  
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
  #5  
Old November 3rd 08, 10:12 AM posted to microsoft.public.outlook.program_addins
Chris Noble
external usenet poster
 
Posts: 1
Default How to prevent winmail.dat from being sent with message?

Hello

I have been having a similar problem with some customers who can get simple mapi working fine from our software, but extended mapi they get the email with the attached winmail.dat.

I am using the Delphi ExtendedMAPI library that Dmitry Streblechenko mentions on his site.

I am also using his Outlook Spy progrma (Fantastic tool btw!)to check my results. both myself and the customer are sendnig using outlook 2007 sp1 through exchange server (mine is 6.5, dont know what the customer has) to outlook express.

On mine the simple mapi has winmail.dat and extended mapi works fine?? very odd.

On the customers the simple mapi works fine, but the extended mapi they get the winmail.dat.




I am doing the following in my code:

In the delphi mapi library PR_EMS_AB_SEND_TNEF 0x8191 and PR_SEND_RICH_TEXT_INFO 0x3A40 exist.

Also PR_EMS_AB_SEND_TNEF shows in Outlook Spy as having GUID {00062008-0000-0000-C000-000000000046}

UseTNEF 0x8582 doesnt exist and when created doesnt show a GUID in Outlook Spy.

If I set PR_EMS_AB_SEND_TNEF then PR_SEND_RICH_TEXT_INFO also gets set automatically.

This does not happen if I use UseTNEF and so has to be set manually.

I saw your comment about not explicitly using the property id and wondering if that is what i am using

PropertyID is type ULONG and is passed the following constant:
PR_EMS_AB_SEND_TNEF = (ULONG($8191) shl 16) or PT_BOOLEAN;

// Initialise and set the details of the property we want to modify
FillChar(NewProperty, SizeOf(TSPropValue), 0);
NewProperty.ulPropTag := PropertyId;
NewProperty.Value.b := SmallInt(Value);

// Update said property
SetPropResult := MapiProp.SetProps(1, @NewProperty, Problems);

This is not likely to work despite showing ok in Outlook Spy as far as exchange is concerned?
 




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 12:28 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-2025 Outlook Banter.
The comments are property of their posters.