Connecting to SMTP Server

Giganews Newsgroups
Subject: Connecting to SMTP Server
Posted by:  Colin Coleman (colinc@nospam.com)
Date: Fri, 7 Nov 2003

Hi we are new to Indy components under Delphi and wondered if anyone could
steer us in the right direction.

We have Win 2000 SBS server running Exchange 2000 server, We want to get an
email sent from our client machine with Attachment if possible to another
user.

We have downloaded many examples, but all seem to want the user to enter
1) Name of mail host
2) User name
3 User password

what we would like to be able to do is NOT ask the user as he/ she has
already logged into windows, any of the above details but locate them either
remotely for the exchange server name, and locally for the user and
password?

Once these details are entered in the iDmessage it works a treat !!!!,
Though we did find that we need to set iDmessage.text to say 'fr…@fred.com'
so that the receiver sees who sent the email.

I cant seem to find any details on adding an attachment anywhere in
indy...anyone done this ?

Thanks
Colin Coleman

Replies