Problem with TIdSMTP Components

Giganews Newsgroups
Subject: Problem with TIdSMTP Components
Posted by:  Marcello Scala (msca…@email.it)
Date: Wed, 5 Nov 2003

Hi All

I think that this is a bug of TidSMTP Component.

This is my source:

          dm1->tmpMessage1->Clear();
          dm1->tmpMessage1->LoadFromFile("c:\\temp.tmp");

          Label11->Caption = tmpMessage1->Recipients->EMailAddresses; //
test if message class is not empty...OK!

          dm1->tmpMessage1->NoEncode = true;  // da testare se
effettivamente c'è necessità

          dm1->cliSMTP->Host = "out.myaccount.it"; // i have used myaccout
to hide it on this forum but into the original source is correct
          dm1->cliSMTP->Port = 25;
          dm1->cliSMTP->ReadTimeout = 5000;

          try
            {
              dm1->cliSMTP->Connect();
              dm1->cliSMTP->Send(tmpMessage1);
              dm1->cliSMTP->Disconnect();
            }
        catch(...)
            {
                etc....
            }

-----------------------------------------------

This is the message loaded with LoadFromFile Method:

essage-ID: <3FA9436A.40403…@temp.it>
Date: Wed, 05 Nov 2003 19:37:30 +0100
From: TEMP <te…@temp.it>
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.5)
Gecko/20031007
X-Accept-Language: en-us, en
MIME-Version: 1.0
To:  msca…@emails.it
Subject: this is my subject
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit

this is my text

.

----------------------------------------------------------------------------
--------

Why this message is sent (the component send this message without any
errors)  but after there is not present on my MailBox?

(i have used Mozilla Mail&Newsgroup client)

Please help me.

Thanks

Marcello

Replies