Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Trying to stop sending WINMAIL.DAT

Status
Not open for further replies.

chinaski02

Programmer
Sep 28, 2005
1
US
I'm trying to send email programmatically using Outlook automation. Environment is Outlook 2003 and Exchange Server 2003.

Snippet of my Delphi code:

MailItem.Subject := MailSubject;
MailItem.BodyFormat := olFormatHTML;
for i := 0 to Attachments.Count - 1 do
begin
MailItem.Attachments.Add(Attachments);
end;
MailItem.Display;

I've also tried 'olFormatPlain' as the BodyFormat. But the receiver gets WINMAIL.DAT unless they are using Outlook or Outlook Express. Unfortunately, the intended recipients are using Lotus Notes.

The content-type of the message body is as specified in my program, but the content-type of the attachments comes through as 'application/ms-tnef'.

Note that my method does not make any global changes to either the server or the client; it applies to the individual message being sent. The Outlook sender reports that the format menu shows 'Plain text' or 'HTML', as the case may be, on these individual messages.

I'm assuming that there is an overriding global setting on the server that is causing this.

Assume that the sender will continue using Outlook and the recipient will continue using Notes. What can I do to stop the sending of WINMAIL.DAT?
 
Are you sending in RTF format? If so, send in HTML or plain text.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top