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,

Signature
Bob
Dmitry Streblechenko \(MVP\) - 25 Aug 2004 18:19 GMT
See http://www.outlookcode.com/d/sec.htm
If you need to delete a message after it is submitted, simply set the
MailItem.DeleteAfterSubmit property.
Dmitry Streblechenko (MVP)
http://www.dimastr.com/
OutlookSpy - Outlook, CDO
and MAPI Developer Tool
> 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?
[quoted text clipped - 15 lines]
>
> Many thanks,