Re: Abstract error when sned mail by IdSmtp

Giganews Newsgroups
Subject: Re: Abstract error when sned mail by IdSmtp
Posted by:  Remy Lebeau \(Indy Team\) (no.spam@no.spam.com)
Date: Sat, 4 Jul 2009

"Avi Jackobson" <omerso…@inter.net.il> wrote in message
news:5448479EC387E340omerso…@inter.net.il...

>          idSMTP.Host  :=  'smtp.gmail.com';

Please search the archives athttp://www.deja.com and
http://forums.codegear.com.  Detailed instructions for using TIdSMTP with
GMail have been posted several times before.

>          idSMTP.IOHandler := TIdSSLIOHandlerSocketBase.Create(nil);

You are instantiating the wrong class.  TIdSSLIOHandlerSocketBase is an
abstact base class, and thus must not be used directly.  You need to use a
descendant class instead, such as TIdSSLIOHandlerSocketOpenSSL.

--
Remy Lebeau (Indy Team)

Replies

In response to

Abstract error when sned mail by IdSmtp posted by Avi Jackobson on Sat, 4 Jul 2009