A Microsoft Outlook email forum. Outlook Banter

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » Outlook Banter forum » Microsoft Outlook Email Newsgroups » Outlook - Using Forms
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

Tags: , , ,

how to change sender when i create new mail?





 
 
Thread Tools Display Modes
  #1  
Old March 29th 06, 03:45 AM posted to microsoft.public.outlook.program_forms
StupidDog
external usenet poster
 
Posts: 7
Default how to change sender when i create new mail?

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);
Ads
  #2  
Old March 29th 06, 07:02 AM posted to microsoft.public.outlook.program_forms
Sydney
external usenet poster
 
Posts: 24
Default how to change sender when i create new mail?

use the SentOnBehalfOfName
eg SentOnBehalfOfName = "Betty"

"StupidDog" wrote in message
...
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);



 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
safe sender mail still go to junk folder Ray Outlook - Using Contacts 0 March 16th 06 05:37 PM
script to create local pst, change profile dpare1@cox.net Outlook - General Queries 0 March 8th 06 04:37 PM
can i group emails by sender & by number of items for each sender baffled_by_tech Outlook - Using Contacts 2 March 5th 06 09:27 PM
Junk mail: How to create a button for "Add sender to blocked sender list" Nananana Outlook - General Queries 2 February 2nd 06 01:37 PM
Can not change or create appointment Brian Outlook - Calandaring 0 January 26th 06 04:17 PM


All times are GMT +1. The time now is 12:01 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.Search Engine Friendly URLs by vBSEO 2.4.0
Copyright ©2004-2008 Outlook Banter, part of the NewsgroupBanter project.
The comments are property of their posters.
Loans - Remortgages - Advertising - Dune - Credit Cards