TIdMessage - BCC

Giganews Newsgroups
Subject: TIdMessage - BCC
Posted by:  Elmar Baumann (elmar-bauma…@arcor.de)
Date: Mon, 29 Nov 2004

Hello,
i'am using Indy Snapshot (Download from 28.11.2004) and have a Problem to
send
eMail 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;                  //
CC - BCC and Recipient are ComboBoxes
      IdMessage1->BccList->EMailAddresses = BCC->Text;
    }

    IdMessage1->Body->Add(Memo1->Text);
    IdMessage1->Subject = Betreff->Text;
    IdSMTP1->Send(IdMessage1);
    IdSMTP1->Disconnect();
    Form1->AfterSend();
  }
  }
  else
  {
    MessageBox(0,"Check SMTP-Settings","SMTP-Client",MB_OK);
  }
}
catch (Exception &exception)
{
  MessageBox(0,exception.Message.c_str(),"Error",MB_OK);
  IdSMTP1->Disconnect();
  Form1->AfterSend();
}

Sending Mail to Recipient (TO)and CC works good, but no Mail was sent to a
given BCC-Address!!
Have anyone a Reason for this??

Elmar Baumann

Replies