Indy and Exchange

Giganews Newsgroups
Subject: Indy and Exchange
Posted by:  Ijahsoft (in…@ijahsoft.com.au)
Date: Fri, 9 Jan 2004

Hello, I am trying to write an app that is a pop3 collector for Microsoft
Exchange.
All I do is use the tidpop3 component to get messages and use tidsmtp to
send on to exchange.

My code is basically this

Msg := TIdMessage.Create(nil) ;
idpop3.Retrieve(MsgIdx, Msg) ;

//do some processing.

idsmtp.Send(Msg) ;

When I receive a message without an attachment and forward it works fine.
When I receive and forward a message with an attachment. The message in
exchange shows as this

"This is a MIME-formatted message. If you see this text it means that your
E-mail software does not support MIME-formatted messages"

The attachment is fine but it wont show the body of the message. Could some
one tell me why this is happening?

Looking at previous posts I have noticed that exchange can be difficult to
deal with.
Could anyone tell me things to look out for when sending and receiving
emails using indy with exchange?
Thanks for your time.
Rick.

Replies