Outlook Banter

Outlook Banter (http://www.outlookbanter.com/)
-   Outlook - Using Contacts (http://www.outlookbanter.com/outlook-using-contacts/)
-   -   How to make an item look like it has been "sent" (http://www.outlookbanter.com/outlook-using-contacts/29736-how-make-item-look-like.html)

Sanjay_S via OfficeKB.com October 12th 06 10:29 AM

How to make an item look like it has been "sent"
 
Hi

I have written an application to create a new mail item and I am able to save
it.. It is saving in the draft folder. when i open the perticular item i am
able to edit the "to, cc, subject" field which i dont to. I want to see the
same item as a sent item where in you can't edit the fields and the issue is
I dont want to send it to the recipiant ( i,e i dont want to use send( )
function).

The following is my code please go through let me know the solution. Thanks
in Advance.

_MailItemPtr olMail( pApp-CreateItem(olMailItem));
olMail-PutSentOnBehalfOfName("ABCDE");
olMail-PutTo("ABCDE");
olMail-PutSubject("You have a mail);
olMail-PutBody("Hello World");
olMail-Save( );

Regards
Sanjay

--
Message posted via OfficeKB.com
http://www.officekb.com/Uwe/Forums.a...tacts/200610/1


Brian Tillman October 12th 06 02:07 PM

How to make an item look like it has been "sent"
 
Sanjay_S via OfficeKB.com u27530@uwe wrote:

I have written an application to create a new mail item and I am able
to save it.. It is saving in the draft folder. when i open the
perticular item i am able to edit the "to, cc, subject" field which i
dont to. I want to see the same item as a sent item where in you
can't edit the fields and the issue is I dont want to send it to the
recipiant ( i,e i dont want to use send( ) function).

The following is my code please go through let me know the solution.


You may get a better response in the programming newsgroup:
news://msnews.microsoft.com/microsof...ok.program_vba
--
Brian Tillman


All times are GMT +1. The time now is 06:41 PM.

Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 2.4.0
Copyright ©2004-2006 OutlookBanter.com