PC Review
Forums
Newsgroups
Microsoft Outlook
Microsoft Outlook VBA Programming
Re: Mimic a new received Mail Item
Forums
Newsgroups
Microsoft Outlook
Microsoft Outlook VBA Programming
Re: Mimic a new received Mail Item
![]() |
Re: Mimic a new received Mail Item |
|
|
Thread Tools | Rate Thread |
|
|
#1 |
|
Guest
Posts: n/a
|
Could you please elaborate more? If I do want to change the sender,
what should i do? Thanks, jenny "Dmitry Streblechenko" <dmitry@dimastr.com> wrote in message news:<uzXM7qUKDHA.2184@TK2MSFTNGP12.phx.gbl>... > Create a post item, then change the MessageClass property to IPM.Note. Note > that you won't be able to set the sender related properties using OOM only. > > Dmitry Streblechenko (MVP) > http://www.dimastr.com/ > OutlookSpy - Outlook, CDO > and MAPI Developer Tool > > > "Greg Fox" <gfox@dma2.com> wrote in message > news:OAY4IoSKDHA.384@TK2MSFTNGP10.phx.gbl... > > Hi. Anyone know of an approach to 'push' in an Inbox email > > with automation? > > > > For showing demos (offline) I would like to have a standalone > > EXE create an email and place it in the Inbox, mimicing the > > receipt of an email. Now, I can create a new email in such > > an EXE and save it to the inbox, but it appears as an unsent > > new email rather than a received one. Any ideas? > > > > Thanks, Greg Fox > > > > |
|
|
|
#2 |
|
Guest
Posts: n/a
|
1.
set Msg = Application.CreateItem(olPostItem) set Msg = Msg.Move(Application.Session.GetDefaultFolder(olFolderInbox)) 'set all the properties here Msg.MessageClass = "IPM.Note" Msg.Save 2. You need to use Extended MAPI or CDO (or Redemption) to set all the available PR_SENDER_xxx properties, Outlook Object Model won't allow you to do that. Dmitry Streblechenko (MVP) http://www.dimastr.com/ OutlookSpy - Outlook, CDO and MAPI Developer Tool "Jenny Tam" <yinjentam@hotmail.com> wrote in message news:d6b9e062.0306301557.2ae4ba7c@posting.google.com... > Could you please elaborate more? If I do want to change the sender, > what should i do? > > Thanks, > jenny > > "Dmitry Streblechenko" <dmitry@dimastr.com> wrote in message news:<uzXM7qUKDHA.2184@TK2MSFTNGP12.phx.gbl>... > > Create a post item, then change the MessageClass property to IPM.Note. Note > > that you won't be able to set the sender related properties using OOM only. > > > > Dmitry Streblechenko (MVP) > > http://www.dimastr.com/ > > OutlookSpy - Outlook, CDO > > and MAPI Developer Tool > > > > > > "Greg Fox" <gfox@dma2.com> wrote in message > > news:OAY4IoSKDHA.384@TK2MSFTNGP10.phx.gbl... > > > Hi. Anyone know of an approach to 'push' in an Inbox email > > > with automation? > > > > > > For showing demos (offline) I would like to have a standalone > > > EXE create an email and place it in the Inbox, mimicing the > > > receipt of an email. Now, I can create a new email in such > > > an EXE and save it to the inbox, but it appears as an unsent > > > new email rather than a received one. Any ideas? > > > > > > Thanks, Greg Fox > > > > > > |
|
![]() |
|
| Thread Tools | |
| Rate This Thread | |
|
|

Main Page 

