SMTPRelay demo: Exception because of blank Host

Giganews Newsgroups
Subject: SMTPRelay demo: Exception because of blank Host
Posted by:  mysticforces (paul.four…
Date: Wed, 4 Apr 2007

I'm running version 10.1.5

I'm looking at the SMTP relay demo program.  It raises an exception in the btnSendMailClick procedure as soon as it tries to connect.  The problem actually happens further up the inheritance tree in the TIdTCPClientCustom object.

procedure TIdTCPClientCustom.Connect;
  // Do not call Connected here, it will call CheckDisconnect
  EIdAlreadyConnected.IfTrue(Connected, RSAlreadyConnected);


As soon as it checks if it has a 'host' filled in it raises an exception which then stops the rest of the program.