Show a draft mail as sent mail

S

Sanjay_S

Hi

I have created an appliction in VC++ where i will create a mail and save it
in the inbox . It is saving it as draft and not as a sent item.. I have
posted the code below. Please let me know what i need to change.

_ApplicationPtr pApp;
_MailItemPtr olMail( pApp->CreateItem(olMailItem));
olMail->PutTo("(e-mail address removed)");
olMail->Save();

Another issue is if i change the olMailitem to olPostItem i am getting a run
time error..

Thanks
Sanjay
 

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