Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Outlook / Programming Add-Ins / August 2004

Tip: Looking for answers? Try searching our database.

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

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Bob - 25 Aug 2004 12:22 GMT
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,
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.