Re: TIdSMTPRelay

Giganews Newsgroups
Subject: Re: TIdSMTPRelay
Posted by:  Remy Lebeau (Indy Team) (no.spam@no.spam.com)
Date: Wed, 25 Apr 2007

"Dennis" <dennis.rus…@trobit.com> wrote in message
news:58031EDCAF23E340dennis.rus…@trobit.com...

> I cannot get even a simple TIdSMTPRelay to work.

That is because you are using it wrong.

> Connect to a public DNS server.

DO NOT connect to a DNS server manually.  TIdSMTPRelay does that
internally for you.  All you have to do is set the DNSServer property.

> And try to do a SendMsg.

DO NOT call SendMsg() directly.  You need to call Send() instead.  All
SendMsg() does is dumps the raw TIdMessage data into the socket and
nothing else.  Send() is what does all of the work of figuring out the
remote servers, connecting to them, and issuing commands to them.

Gambit

Replies

In response to

TIdSMTPRelay posted by Dennis on Wed, 25 Apr 2007