R
Ralf Ebeling
Hi,
I'm somewhat new to developing an OL-addin with VB2005.
I'm trying to populate the Bcc field with a predefined mail address
before the user hits the send button. So the user has the chance to
remove the Bcc address for some mails.
I've added a NewInspector handler and some code to determine when to
add the Bcc address. This works so far, but at least the BCC address
isn't shown in the Bcc field.
If I open and just close the address book the Bcc field will be
populated with the Bcc address already set in the NewInspector handler.
It also makes no difference which method of adding the Bcc address I
use:
Method 1 (afaik the recommend way):
oRecip = Inspector.CurrentItem.Recipients.Add(_sAlwaysBcc)
oRecip.Type = Outlook.OlMailRecipientType.olBCC
Method 2:
Inspector.CurrentItem.BCC = _sAlwaysBcc
Any hints or ideas?
Ralf
BTW: How can I programmatically enable/view the Bcc button and field?
I'm somewhat new to developing an OL-addin with VB2005.
I'm trying to populate the Bcc field with a predefined mail address
before the user hits the send button. So the user has the chance to
remove the Bcc address for some mails.
I've added a NewInspector handler and some code to determine when to
add the Bcc address. This works so far, but at least the BCC address
isn't shown in the Bcc field.
If I open and just close the address book the Bcc field will be
populated with the Bcc address already set in the NewInspector handler.
It also makes no difference which method of adding the Bcc address I
use:
Method 1 (afaik the recommend way):
oRecip = Inspector.CurrentItem.Recipients.Add(_sAlwaysBcc)
oRecip.Type = Outlook.OlMailRecipientType.olBCC
Method 2:
Inspector.CurrentItem.BCC = _sAlwaysBcc
Any hints or ideas?
Ralf
BTW: How can I programmatically enable/view the Bcc button and field?