Avoiding TNEF encoding / winmail.dat



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: setting the PR_SENDER_EMAIL_ADDRESS when sending email
    ... So there is no standard way to access multiple clients but with Simple MAPI? ... Outlook to connect to the LN and G/W servers. ... Accounts can be accessed using the ...
    (microsoft.public.win32.programmer.messaging)
  • Re: How to replace an attachment from a file.wav to a winmail.dat
    ... And it will not have Outlook installed on. ... when the code tries to convert back from MAPI to MIME using the ... we created one stream object with the contents of the file using the ... and we created the new tnef stream using the OpenTnefStreamEx ...
    (microsoft.public.win32.programmer.messaging)
  • Re: What is next step to extracting PST contact items
    ... IMO mode doesn't really support Extended MAPI. ... We cut IMO mode in Outlook 2002. ... and MAPI Developer Tool ... An unexpected error has occurred. ...
    (microsoft.public.win32.programmer.messaging)
  • Re: Calling MAPI from C++/CLI
    ... OutlookSpy - Outlook, CDO ... and MAPI Developer Tool ... MAPI32.dll and marshal calls from my main, managed-code Outlook ... The whole process starts when Outlook loads my dll and calls the ...
    (microsoft.public.win32.programmer.messaging)
  • Re: SaveChanges problem
    ... Currently we have not found any known issue regarding using OOM and MAPI ... OutlookSpy - Outlook, CDO ... been able to duplicate it normally, but I can when using Outlook Spy ...
    (microsoft.public.win32.programmer.messaging)