WUGNET, the Windows User Group Network
Your Complete Resource Center for "The Best" in Shareware, Computing Tips and Support, Windows Industry News... and much more!
Home Forums Shareware Windows Tips Hot Offers FREE Newsletters Arcade Contact Us About Partners
Search WUGNET: RSS Feeds RSS Feeds Advertise with WUGNET    |    Shareware eBooks
HomeHome FAQFAQ      ProfileProfile    Private MessagesPrivate Messages   Log inLog in

Capturing the Message Body on Send of the email.

 
   Home -> Office -> Interoperability RSS
Next:  Associating the inbox with a spcific account  
Author Message
TrussworksLeo

External


Since: Aug 15, 2008
Posts: 1



(Msg. 1) Posted: Fri Aug 15, 2008 1:34 pm
Post subject: Capturing the Message Body on Send of the email.
Archived from groups: microsoft>public>outlook>interop (more info?)

Hello,

I was wondering if someone could send me in the right direction.

I have a VB.Net app that opens an email add the sender and adds attachments
to it.

I would like to be able to either save the message or save the txt in the
body of the message to a file on the file system with other files related to
the purpose of the email. (I know how to do the file system operations once I
get access to the message body)

My App instantiated the message so I should have access to the on send event
correct?

Where do I begin?

I have Sue Moshers book on Outlook 2007 Programming but nothing quite fits.

--
Thank You, Leo
Back to top
Login to vote
Ken Slovak - [MVP - Outlo

External


Since: Oct 17, 2003
Posts: 2999



(Msg. 2) Posted: Fri Aug 15, 2008 5:39 pm
Post subject: Re: Capturing the Message Body on Send of the email. [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Is this message created using the Outlook object model? If you have the
message as a MailItem object then save it and read the Body or HTMLBody
properties.

If you want to wait until send occurs you can either declare the MailItem
WithEvents and handle item.Send() or declare the Outlook.Application object
WithEvents and handle application.ItemSend(). You still should save it
before you read Body or HTMLBody.

--
Ken Slovak
[MVP - Outlook]
http://www.slovaktech.com
Author: Professional Programming Outlook 2007.
Reminder Manager, Extended Reminders, Attachment Options.
http://www.slovaktech.com/products.htm


"TrussworksLeo" <Leo DeleteThis @noemail.noemail> wrote in message
news:9F68028D-5CDA-4B6C-8D18-92815FA6D183@microsoft.com...
> Hello,
>
> I was wondering if someone could send me in the right direction.
>
> I have a VB.Net app that opens an email add the sender and adds
> attachments
> to it.
>
> I would like to be able to either save the message or save the txt in the
> body of the message to a file on the file system with other files related
> to
> the purpose of the email. (I know how to do the file system operations
> once I
> get access to the message body)
>
> My App instantiated the message so I should have access to the on send
> event
> correct?
>
> Where do I begin?
>
> I have Sue Moshers book on Outlook 2007 Programming but nothing quite
> fits.
>
> --
> Thank You, Leo
Back to top
Login to vote
viktor dolezel

External


Since: Sep 17, 2008
Posts: 1



(Msg. 3) Posted: Wed Sep 17, 2008 2:34 pm
Post subject: Re: Capturing the Message Body on Send of the email. [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

I'm having a similar issue.
How can I instantiate a MailItem if I only have the .msg file?
Thanks in advance.

"Ken Slovak - [MVP - Outlook]" wrote:

> Is this message created using the Outlook object model? If you have the
> message as a MailItem object then save it and read the Body or HTMLBody
> properties.
>
> If you want to wait until send occurs you can either declare the MailItem
> WithEvents and handle item.Send() or declare the Outlook.Application object
> WithEvents and handle application.ItemSend(). You still should save it
> before you read Body or HTMLBody.
>
> --
> Ken Slovak
> [MVP - Outlook]
> http://www.slovaktech.com
> Author: Professional Programming Outlook 2007.
> Reminder Manager, Extended Reminders, Attachment Options.
> http://www.slovaktech.com/products.htm
>
>
> "TrussworksLeo" <Leo RemoveThis @noemail.noemail> wrote in message
> news:9F68028D-5CDA-4B6C-8D18-92815FA6D183@microsoft.com...
> > Hello,
> >
> > I was wondering if someone could send me in the right direction.
> >
> > I have a VB.Net app that opens an email add the sender and adds
> > attachments
> > to it.
> >
> > I would like to be able to either save the message or save the txt in the
> > body of the message to a file on the file system with other files related
> > to
> > the purpose of the email. (I know how to do the file system operations
> > once I
> > get access to the message body)
> >
> > My App instantiated the message so I should have access to the on send
> > event
> > correct?
> >
> > Where do I begin?
> >
> > I have Sue Moshers book on Outlook 2007 Programming but nothing quite
> > fits.
> >
> > --
> > Thank You, Leo
>
>
Back to top
Login to vote
Ken Slovak - [MVP - Outlo

External


Since: Oct 17, 2003
Posts: 2999



(Msg. 4) Posted: Wed Sep 17, 2008 6:03 pm
Post subject: Re: Capturing the Message Body on Send of the email. [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

The only way I know how to do that is to use the 3rd party Redemption
library (www.dimastr.com/redemption), which can import a MSG file as an
item, then you can save it and open it in the Outlook object model as an
Outlook object, or continue to deal with it as an RDO object.

--
Ken Slovak
[MVP - Outlook]
http://www.slovaktech.com
Author: Professional Programming Outlook 2007.
Reminder Manager, Extended Reminders, Attachment Options.
http://www.slovaktech.com/products.htm


"viktor dolezel" <viktor dolezel RemoveThis @discussions.microsoft.com> wrote in message
news:70E33E8B-24E6-4D19-A914-B63810FDBFB1@microsoft.com...
> I'm having a similar issue.
> How can I instantiate a MailItem if I only have the .msg file?
> Thanks in advance.
Back to top
Login to vote
Display posts from previous:   
       Home -> Office -> Interoperability All times are: Eastern Time (US & Canada) (change)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Categories:
 Windows XP
 Windows Vista
 Windows Other
  Office
 Office Other
 Security
  • Home |
  • Shareware |
  • Windows Tips |
  • Hot Offers |
  • FREE Newsletters |
  • Arcade |
  • Forums |
  • eBooks |
  • About WUGNET |
  • Partners |
  • Contact

  • WUGNET Privacy Policy |
  • Link to WUGNET |
  • IT Support