PC Review Forums Newsgroups Microsoft Outlook Microsoft Outlook Program Addins Saving the mail in sent items without actually sending the mail.

Reply

Saving the mail in sent items without actually sending the mail.

 
Thread Tools Rate Thread
Old 07-06-2007, 02:51 PM   #1
Joe
Guest
 
Posts: n/a
Default Saving the mail in sent items without actually sending the mail.



Hi all

i would like to save a copy of a dummy mail which i create in code to
the SentItems folder. i dont want to actually send it. i saw it
working in the LinkedIn Toolbar for outlook while sending invitations
to contacts. They dont sent the mail using outlook rather some web
service but they manage to save a copy into sent items folder. How do
i reproduce something like this. Any sample code or link would be
greatly appreciated.

thanks

Joe Augustine

  Reply With Quote
Old 07-06-2007, 06:23 PM   #2
Mark J. McGinty
Guest
 
Posts: n/a
Default Re: Saving the mail in sent items without actually sending the mail.


"Joe" <jak0101@gmail.com> wrote in message
news:1181224309.145635.134950@z28g2000prd.googlegroups.com...
>
> Hi all
>
> i would like to save a copy of a dummy mail which i create in code to
> the SentItems folder. i dont want to actually send it. i saw it
> working in the LinkedIn Toolbar for outlook while sending invitations
> to contacts. They dont sent the mail using outlook rather some web
> service but they manage to save a copy into sent items folder. How do
> i reproduce something like this. Any sample code or link would be
> greatly appreciated.


Get a reference to the Sent Items MAPIFolder object (GetDefaultFolder method
of NameSpace object, olFolderSentMail as the argument value), then get a
reference to the Items collection (property of MAPIFolder) and use its Add
method to create the email item directly in Sent Items. Or if the item
already exists in another folder, call the item object's Copy or Move method
(both of which accept the destination MAPIFolder as an argument.)


-Mark



> thanks
>
> Joe Augustine
>



  Reply With Quote
Old 07-06-2007, 09:25 PM   #3
Dmitry Streblechenko
Guest
 
Posts: n/a
Default Re: Saving the mail in sent items without actually sending the mail.

http://groups.google.com/group/micr...bbfd6995a46b4c2

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

"Joe" <jak0101@gmail.com> wrote in message
news:1181224309.145635.134950@z28g2000prd.googlegroups.com...
>
> Hi all
>
> i would like to save a copy of a dummy mail which i create in code to
> the SentItems folder. i dont want to actually send it. i saw it
> working in the LinkedIn Toolbar for outlook while sending invitations
> to contacts. They dont sent the mail using outlook rather some web
> service but they manage to save a copy into sent items folder. How do
> i reproduce something like this. Any sample code or link would be
> greatly appreciated.
>
> thanks
>
> Joe Augustine
>



  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