chinaski02
Programmer
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?
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?