SMTP Reply-To Question

Giganews Newsgroups
Subject: SMTP Reply-To Question
Posted by:  Elmar Baumann (elmar-bauma…@arcor.de)
Date: Wed, 8 Dec 2004

Hello,
i'm using Indy 9 Snapshot (dl. on 28.11.04) and have a Problem with the
TIdMessage->ReplyTo Propety, no Reply was sent to me by using
following Code.

try
{
  if(ReadyToSend() == true)
  {
  IdSMTP1->Connect();
  if(IdSMTP1->Connected() == true)
  {
    IdMessage1->UseNowForDate = true;
    IdMessage1->From->Address = Form2->SMTPFrom->Text;
    IdMessage1->Recipients->EMailAddresses = Recipient->Text;
    IdMessage1->CCList->EMailAddresses = CC->Text;
    IdMessage1->BccList->EMailAddresses = BCC->Text;
    IdMessage1->Body->Add(Memo1->Text);
    IdMessage1->Subject = Betreff->Text;

    if(CheckBox1->Checked) // Test
    {
    IdMessage1->ReplyTo->EMailAddresses = Form2->SMTPFrom->Text;
    }
    else
    {
    IdMessage1->ReplyTo->EMailAddresses = "";
    }

    IdMessage1->Headers =IdMessage1->GenerateHeader();
    IdSMTP1->Send(IdMessage1);
    IdSMTP1->Disconnect();
    Form1->AfterSend();
  }
  }
  else
  {
  MessageBox(0,"Check SMTP-Settings","SMTP-Client",MB_OK);
  }
}
catch (Exception &exception)
{
  Memo2->Lines->Add(exception.Message.c_str());
  MessageBox(0,exception.Message.c_str(),"Error",MB_OK);
  IdSMTP1->Disconnect();
  Form1->AfterSend();
}

Changing Mailadresses in IdMessage1->ReplyTo->EMailAddresses has also no
Effect, i'm recieving
only one eMail in all Cases. If this is a Bug ??

Regards

Elmar

Here is the recieved Mail Header:
----------------------------------
Return-path: <elmar-bauma…@arcor.de>
Delivery-date: Wed, 08 Dec 2004 16:50:51 +0100
Received: from [194.97.55.191] (helo=mx7.freenet.de)
by mbox68.freenet.de with esmtpa (ID exim) (Exim 4.43 #2)
id 1Cc45a-0001yN-R1
for ech_n_at…@01019freenet.de; Wed, 08 Dec 2004 16:50:50 +0100
Received: from mail-in-07.arcor-online.net ([151.189.21.47])
by mx7.freenet.de with esmtps (TLSv1:AES256-SHA:256) (Exim 4.43 #13)
id 1Cc45a-0002nz-Oy
for ech_n_at…@freenet.de; Wed, 08 Dec 2004 16:50:50 +0100
Received: from BaumannSoftwareSMTP (dsl-xxx-xxx-xxx-xxx.arcor-ip.net
[xxx.xxx.xxx.xxx])
by mail-in-07.arcor-online.net (Postfix) with ESMTP id 44ECFECB08
for <ech_n_at…@freenet.de>; Wed,  8 Dec 2004 16:50:50 +0100 (CET)
From: elmar-bauma…@arcor.de
Subject: test
To: ech_n_at…@freenet.de
Reply-To: elmar-bauma…@arcor.de
Organization: Baumann Software, Duisburg - Germany
Date: Wed, 8 Dec 2004 16:50:45 +0100
X-Mailer: Baumann Software, Duisburg-Germany
Message-Id: <20041208155050.44ECFECB…@mail-in-07.arcor-online.net>
Received-SPF: pass (mx7.freenet.de: domain of arcor.de designates
151.189.21.47 as permitted sender) client-ip=151.189.21.47;
envelope-from=elmar-bauma…@arcor.de; helo=mail-in-07.arcor-online.net;
Delivered-To: ech_n_at…@freenet.de
Envelope-to: ech_n_at…@freenet.de

This is the SMTP-Client Log:
-----------------------------
Status: Resolving hostname mail.arcor.de.
Status: Connecting to 151.189.21.116.
Verbindung wird hergestellt
Status: Connected.
220 mail-in-07.arcor-online.net ESMTP arcor.de Mailservices usermail

EHLO BaumannSoftwareSMTP

250-mail-in-07.arcor-online.net
250-PIPELINING
250-SIZE 48000000
250-ETRN
250-STARTTLS
250-AUTH LOGIN PLAIN
250-AUTH=LOGIN PLAIN
250-XVERP
250 8BITMIME

RSET

250 Ok

MAIL FROM:<elmar-bauma…@arcor.de>

250 Ok

RCPT TO:<ech_n_at…@freenet.de>

250 Ok

DATA

354 End data with <CR><LF>.<CR><LF>

From: elmar-bauma…@arcor.de

Subject: test

To: ech_n_at…@freenet.de

Reply-To: elmar-bauma…@arcor.de

Organization: Baumann Software, Duisburg - Germany

Date: Wed, 8 Dec 2004 16:50:45 +0100

X-Mailer: Baumann Software, Duisburg-Germany

Status: Encoding text
Test

250 Ok: queued as 44ECFECB08

QUIT

Status: Disconnecting.
Status: Disconnected.

Replies