Sending a copy of an email with out a security pop-up

  • Thread starter Thread starter Bob
  • Start date Start date
B

Bob

Hello, is there anyway to take a copy of a current mail item and send it to
a different recipient without getting the security pop-up?

If I do this, I get the security box that waits five seconds before allowing
the user to accept or decline.

Outlook::_MailItem* pMailItemCopy = NULL;
HRESULT hr = pMailItem->Copy((IDispatch**) &pMailItemCopy);

if(SUCCEEDED(hr)) {
pMailItemCopy->put_To(CComBSTR(cProperties->getNotifyAddy()));
pMailItemCopy->Send();
}

Ideally I would like it to be sent silently and then remove the message
from the Sent Items floder. Is this possible, and if so can someone point
me to some sample C++ code that does somehting similar?

Many thanks,
 
Back
Top