Re: Avoiding TNEF encoding / winmail.dat



If you are using extended MAPI you can TRY setting this property to false for the recipient

#define PR_SEND_RICH_INFO PROP_TAG( PT_BOOLEAN, 0x3A40)

Regards,
Ashutosh

jblum2000@xxxxxxxxx wrote:
Probably a newbie question, but I haven't been able to find the
answer...

A program I'm working on has been using Simple MAPI to generate an
email, attach a file, and mail them to clients... some of whom can't
read the attachment because it shows up as winmail.dat. I've tried
disabling Rich Text in both Outlook and Exchange, but no matter what I
do it still seems to be forcing the attachments into TNEF format.

Is there anything I can do either in Simple or Extended MAPI to force
the attachments to be encoded in a readable format?

(Interestingly, when the message shows up in the Outlook outbox, I can
successfully forward it to the client, and then the attachment shows
up correctly. I also get good results if I have Outlook display the
message before sending, and retype the address -- which suggests that
it the problem has something to do with address resolution, and MAPI
handling it differently than Outlook. Any ideas?)

Cheers,
Jon Blum
.



Relevant Pages

  • Re: Text not appearing in a textbox for Outlook 2003 custom form
    ... You might also consider using Redemption, which wraps around Extended MAPI ... I suspect the issue is that Outlook 2003/Exchange 2003 add full Unicode ... > longer retrieve the data.). ... > interface pointer for an IMessage or IMAPIProp interface. ...
    (microsoft.public.outlook.program_forms)
  • Re: Text not appearing in a textbox for Outlook 2003 custom form
    ... I have Outlook Spy and when I click the IMessage ... longer retrieve the data.). ... interface pointer for an IMessage or IMAPIProp interface. ... The code uses ATL (CComDispatchDriver, CComBSTR, etc and extended MAPI. ...
    (microsoft.public.outlook.program_forms)
  • Re: Outlook COM object model not suitable for use in professional software?
    ... Thanks for the clarification Dmitry. ... The events are used by Outlook for the UI ... It does not matter whether you use OOM or Extended MAPI to process the ... You can still use events for synchronization, as long as they are used as ...
    (microsoft.public.outlook.program_vba)
  • Re: Security Admin confusion
    ... C++ and Delphi programmers can use Extended MAPI directly. ... Sue Mosher, Outlook MVP ... >> I've encountered another couple of cases where the security settings ...
    (microsoft.public.outlook.program_forms)
  • Re: Read contents of Note inserted in Outlook Contact Item Body
    ... I have used only standard MAPI and Outlook objects before and had not come ... "Dmitry Streblechenko" wrote: ... are exposed on top of an Extended MAPI IMessage. ... I appreciate that "MsgBox objNote" works because it is displaying the ...
    (microsoft.public.outlook.program_vba)