Sample code for 30+ languages & platforms
Delphi ActiveX Requires Chilkat v11.0.0+

Send one message with two blind copies

See more Email Object Examples

Set NoBccHeader before adding blind-copy addresses. SendEmail then includes those recipients in the SMTP envelope and omits their addresses from the message headers sent to the relay. Replace the example account and addresses before running this SMTP submission.

Chilkat Delphi ActiveX Downloads

Delphi ActiveX
var
success: Integer;
email: TChilkatEmail;
mail: TChilkatMailMan;

begin
success := 0;

//  Assumes Chilkat is unlocked. See Global Unlock Sample.

email := TChilkatEmail.Create(Self);
email.From := 'Workshop team <events@example.com>';
success := email.AddTo('Alex Rivera','alex@example.net');
if (success <> 1) then
  begin
    Memo1.Lines.Add(email.LastErrorText);
    Exit;
  end;
email.Subject := 'Workshop registration';
email.Body := 'Registration is confirmed.';
//  Set this before AddBcc so the submitted MIME omits the Bcc header.
email.UncommonOptions := 'NoBccHeader';
success := email.AddBcc('Archive','archive@example.com');
if (success <> 1) then
  begin
    Memo1.Lines.Add(email.LastErrorText);
    Exit;
  end;
success := email.AddBcc('Event records','records@example.com');
if (success <> 1) then
  begin
    Memo1.Lines.Add(email.LastErrorText);
    Exit;
  end;
mail := TChilkatMailMan.Create(Self);
mail.SmtpHost := 'smtp.example.com';
mail.SmtpPort := 465;
mail.SmtpSsl := 1;
mail.RequireSslCertVerify := 1;
mail.SmtpUsername := 'SMTP_USERNAME';
mail.SmtpPassword := 'SMTP_PASSWORD';
success := mail.SendEmail(email.ControlInterface);
if (success <> 1) then
  begin
    Memo1.Lines.Add(mail.LastErrorText);
    Exit;
  end;
Memo1.Lines.Add('SMTP relay accepted the submission.');
success := mail.CloseSmtpConnection();
if (success <> 1) then
  begin
    Memo1.Lines.Add('The SMTP session did not close cleanly.');
  end;