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

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,
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top