Re: copy of email



1. Call IExchExtCallback::GetObject to retrieve IMessage and save it using
code similar to KB171907
2. Why not simply set the PR_SENTMAIL_ENTRYID
3. OnSubmit/OnWrite/OnWriteComplete/OnSubmit sequesnce fires only once for
each outgoing message, but OnWrite/OnWriteComplete also fires for tehe
mesasge being forwarded/replied since Outlook updates icon and
PR_LAST_VERB_xxx properties.
Set your own named property when OnSubmit is called then check for that
property in OnWriteComplete to see if you have the eright message.

Dmitry Streblechenko (MVP)
http://www.dimastr.com/
OutlookSpy - Outlook, CDO
and MAPI Developer Tool

"Reesh" <Reesh@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:4966C501-D77C-4AA9-8527-35C5684F04BD@xxxxxxxxxxxxxxxx
Thank you for your response.

Q: How can I take a copy of outgoing e-mail in .msg format from outlook
using ece?
(i mean i have to take a copy of an outgoing e-mail into "xxx" mapi folder
like sent items. but it's not sent items folder.)
Note: forwarded mails also.

OnSumbit and OnWrite are fires morethan one time for forwarded
messages.
How do I solve this problem?

Regards,
--
Reesh


"Dmitry Streblechenko" wrote:

I am not sure what what your question is... Are you trying to retrieve
the
sender properties when a message is being sent?
OnSubmit/OnWrite callbacks fire before the message is handed to a
spooler/transport provider, which sets the sender related properties.
The earliest you can access these properties is when the message is moved
to
the Sent Items folder. You can set up and advise sink on tehe SEnt Items
folder contacnts table to get notified when a new message is created
there.

Dmitry Streblechenko (MVP)
http://www.dimastr.com/
OutlookSpy - Outlook, CDO
and MAPI Developer Tool

"Reesh" <Reesh@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:C234B790-C527-4665-9B23-821E9D2DA56E@xxxxxxxxxxxxxxxx
I overridden OnWriteComplete method of IExchExtMessageEvents. I created
new
empty message under "xxx" mapi folder then "CopyTo" ,"SaveChanges" of
new
msg
and updated PR_MESSAGE_FLAGS property on new msg. I got Outgoing mail
properties except sendermailaddress. How do I get a copy of outgoing
mail
in
Outlook using ece?

Thanks in advance.

Regards,
--
Reesh





.



Relevant Pages

  • Re: How Do I Create a Confirm Deletion Dialog Box for Calendaring?
    ... Otherwise if the user deletes an item from a folder view or context menu you can trap the ItemRemove event on that folder's Items collection, but it doesn't have a Cancel argument and doesn't tell you what was deleted and only fires after the deletion occurs. ... Outlook 2007 does have an BeforeItemMove event that fires when an item is deleted and if the target folder is null that tells you the item is being deleted. ...
    (microsoft.public.outlook.program_vba)
  • Re: copy of email
    ... each outgoing message, but OnWrite/OnWriteComplete also fires for tehe ... OutlookSpy - Outlook, CDO ... (i mean i have to take a copy of an outgoing e-mail into "xxx" mapi folder ... OnSumbit and OnWrite are fires morethan one time for forwarded ...
    (microsoft.public.win32.programmer.messaging)
  • Re: Outlook 2003 blocks outgoing e-mail messages that are medium to la
    ... OX800CCCOF as you describe the issue is caused by your Anti Virus scanning the in and outgoing emails. ... Error Code 35 which is below has nothing to do with your Outlook. ... The AVG AV is not set to check outgoing e-mail, ...
    (microsoft.public.outlook)
  • Re: MailItem
    ... There is no event that fires when the To button is pressed. ... WordMail items don't know anything about temporary buttons, as Outlook items ... > Is it possible to have a custom event fire when the TO button is pressed ... I have the form pop up currently when a button I ...
    (microsoft.public.outlook.program_addins)
  • Re: Microsoft Outlook sends multiple copies of mail...
    ... Disable your firewall and anti-virus from scanning incoming or outgoing ... Milly Staples [MVP - Outlook] ... | I've talk to administrator of my SMTP server and he told me that by ...
    (microsoft.public.outlook)

Loading