Outlook BCC

Giganews Newsgroups
Subject: Outlook BCC
Posted by:  Brian Ellul (brianell…@ecenglish.nospan.com)
Date: Tue, 31 Jul 2007

Hi

I'm using Delphi 2006, and trying to send an email from my application using
the code below but I can't use the BCC option because of the following
errors.
BCC.Add --> Invalid variant operation
MailBCC.Add --> Method MailBCC not supported by automation object.
Any help wuld be greatly appreciated.

    Try
        Outlook := GetActiveOleObject('Outlook.Application');
      Except
        Outlook := CreateOleObject('Outlook.Application');
      End;

      MailItem:= Outlook.CreateItem(olMailItem);
      MailItem.BCC.Add(); Or MailItem.MailBCC.Add();
    .
    .
    .

Regards
Brian

Replies