how to change sender when i create new mail?

S

StupidDog

I write some code for add email to outlook. But i do't
change "sender",who can help me? thanks!

My Code like this...

_MailItemPtr pNewMail;
pNewMail=m_pItems->Add();
pNewMail->To="someone";
pNewMail->CC="someone";
pNewMail->Subject="subject";
pNewMail->Body="body";

pNewMail->UnRead = FALSE;
pNewMail->Save();
NewMail->Move(m_pFolder);
 

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