PC Review Forums Newsgroups Microsoft Outlook Microsoft Outlook VBA Programming Re: Mimic a new received Mail Item

Reply

Re: Mimic a new received Mail Item

 
Thread Tools Rate Thread
Old 30-06-2003, 11:57 PM   #1
Jenny Tam
Guest
 
Posts: n/a
Default Re: Mimic a new received Mail Item


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
> >
> >

  Reply With Quote
Old 08-07-2003, 08:05 PM   #2
Dmitry Streblechenko
Guest
 
Posts: n/a
Default Re: Mimic a new received Mail Item

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
> > >
> > >



  Reply With Quote
Reply



Thread Tools
Rate This Thread
Rate This Thread:

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