Search The ForumSearch   RegisterRegister  LoginLogin

MailBee POP3

 AfterLogic Forum : MailBee POP3
Subject Topic: Include attachments as part of message Post ReplyPost New Topic
Author
Message << Prev Topic | Next Topic >>
nwebster
Newbie
Newbie


Joined: 12 April 2005
Location: United States
Online Status: Offline
Posts: 9
Posted: 12 April 2005 at 4:14pm | IP Logged Quote nwebster

Right now I am using a windows service to read in e-mails and write the data to a sql server. I know I can use the attachments collection to get each individual attachment and save it off, but is it possible to save the body of the message with the attachments embedded in them all as part of one big message?

Does this make sense?
Back to Top View nwebster's Profile Search for other posts by nwebster
 
Alex
AfterLogic Support
AfterLogic Support
Avatar

Joined: 19 November 2003
Online Status: Offline
Posts: 2206
Posted: 13 April 2005 at 8:32am | IP Logged Quote Alex

Yes, you can save the message completely as one big chunk of data using RawBody property of Message object. It returns the entire message data as String.

Code:

Set Msg = POP3.RetrieveSingleMessage(1)
strData = Msg.RawBody


RawBody is also writable. It means you can create Message object and then assign RawBody from external source, thus loading the message from a string.

Code:

Set Msg = CreateObject("MailBee.Message")
Msg.RawBody = strData
MsgBox Msg.Attachments.Count


Regards,
Alex
Back to Top View Alex's Profile Search for other posts by Alex
 

If you wish to post a reply to this topic you must first login
If you are not already registered you must first register

  Post ReplyPost New Topic
Printable version Printable version

Forum Jump

Powered by Web Wiz Forums version 7.9
Copyright ©2001-2004 Web Wiz Guide