Hi Darren,

Try Indy (Internet Direct)- search for "Internet Direct Component Delphi"
on google or whatever.  It's free, and the people on this list seem to
swear by it rather than at it. :-)

You'll probably find that there is an 'SMTP-client' component which will
allow you to create, define, populate and send an email, given the server
address and port.

I can't think of anything offhand that will use just any existing email
client (apart from mailto: on the command line or ShellExecute - and I
don't think _that_ will give you anything you can edit programmatically.)

You're using Outlook I see ...

If you have nothing better to do for the next couple of weeks, and you're
feeling exceptionally masochistic, you could try talking Outlook into
doing what you want it to.  Check out the 'Servers' page.  You may find
a component called 'Outlook Application'.  If not, see if you can find the
Outlook .olb or .tlb (ActiveX object- or type-library), import it into
Delphi and work from there.

The resulting component or unit provides the interfaces you need to control
Outlook using ActiveX/COM.

I'm assuming Delphi 5 - this is the first version to generate component
wrappers for COM servers, although you can import typelibs into older
versions and get a source unit.  (I know Delphi 3 did it.)

Manually importing type-libs in Delphi is quite straightforward.  Go to
'Project|Import Type Library' then select your olb or tlb.  In Delphi 5,
you can select 'Generate Component Wrapper' and it will install itself
into the component palette.  Either way, the file will be automagically
converted into a Delphi unit.

Better get used to the OleVariant type though ... the typelibs are written
for VB (puke.)

Probably easier to just use a non-visual component to create and send the
email.

Hope this helps.

Cory Shanks.



-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On
Behalf Of Darren J Gilbertson
Sent: Tuesday, 16 January 2001 14:48
To: Multiple recipients of list delphi
Subject: [DUG]: Email Component



Can anybody suggest a free email component that will access the default
email program (ie outlook) and be able to create and define a new message?

I need to have multiline text in the email body.


Cheers

Darren

---------------------------------------------------------------------------
    New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
                  Website: http://www.delphi.org.nz
To UnSub, send email to: [EMAIL PROTECTED]
with body of "unsubscribe delphi"


---------------------------------------------------------------------------
    New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
                  Website: http://www.delphi.org.nz
To UnSub, send email to: [EMAIL PROTECTED] 
with body of "unsubscribe delphi"

Reply via email to