If the recipient is an Outlook user then they never will see winmail.dat,
Outlook understands that file. If the use isn't using Outlook you can't
avoid them seeing winmail.dat if you send them a custom form. Your choices
are to not use a custom form or to live with them getting winmail.dat and
not being able to do anything with it.
--
Ken Slovak
[MVP - Outlook]
http://www.slovaktech.com
Author: Absolute Beginner's Guide to Microsoft Office Outlook 2003
Reminder Manager, Extended Reminders, Attachment Options
http://www.slovaktech.com/products.htm
"István Becze" <IstvnBecze.DeleteThis@discussions.microsoft.com> wrote in message
news:91916678-1387-499F-9BFF-2F84B85C9628@microsoft.com...
> Thank you Ken for your comment. I had actually read the articles about
> Outlook attaching formating information in Winmail.dat, but I tested again
> after your note just to double check myself. However, I believe that my
> problem is a different one.
>
> My custom form, that I use to create the MailItem, has user defined
> fields,
> which, if I understand correctly, will force Outlook to attach the
> Winmail.dat file, even if I send the message in a plain text format (I
> check
> the MailItem..BodyFormat property in the MailItem.Send event and in
> addition,
> my Outlook Tools -> Options -> Mail Format tab -> Compose in this message
> format is set to "Plain Text").
>
> The problem is that if I attach a file to the message on the sender side
> and
> send it through an SMTP server, the attached file will be embedded into
> the
> Winmail.dat on the recipient side. (I can see this if I attach a plain
> text
> file and open the Winmail.dat file on the recipient side in a text editor.
> Besides the text of he attached file, Winmail.dat obviously has some
> binary
> information.)
>
> I don't mind that Winmail.dat is attached to the message on the recipient
> side. However, I would like to have the file that was attached on the
> sender
> side to show up on the recipient side as it was attached. (i.e not
> embedded
> in Winmail.dat.)