Search The ForumSearch   RegisterRegister  LoginLogin

MailBee POP3

 AfterLogic Forum : MailBee POP3
Subject Topic: Get attachments from .eml attachements? Post ReplyPost New Topic
Author
Message << Prev Topic | Next Topic >>
kanenas.net
Newbie
Newbie
Avatar

Joined: 05 June 2009
Location: Greece
Online Status: Offline
Posts: 3
Posted: 05 June 2009 at 7:07am | IP Logged Quote kanenas.net

We are using MailBee ActiveX v.5.6.0.136 Registered version in our asp scripts and we are experiencing a problem with .eml attachments.

In our script we create 2 objects...

Set objPOP3     = Server.CreateObject("MailBee.POP3")
Set Msg         &nb sp;= Server.CreateObject("MailBee.Message")

We have an email with .eml attachments files.
In that .eml attachment there are .jpg, .doc, .pps attachements.
Is there a way to retrieve from that .eml attachment these files (.jpg, .doc, .pps, etc) and save them to hard disk drive ?


Please advice
Back to Top View kanenas.net's Profile Search for other posts by kanenas.net Visit kanenas.net's Homepage
 
Igor
AfterLogic Support
AfterLogic Support


Joined: 24 June 2008
Location: United States
Online Status: Offline
Posts: 6104
Posted: 05 June 2009 at 7:20am | IP Logged Quote Igor

This documentation page should be useful to you, it contains working example.

--
Regards,
Igor, AfterLogic Support
Back to Top View Igor's Profile Search for other posts by Igor
 
Igor
AfterLogic Support
AfterLogic Support


Joined: 24 June 2008
Location: United States
Online Status: Offline
Posts: 6104
Posted: 05 June 2009 at 7:24am | IP Logged Quote Igor

If you have a message to be parsed as attachment of another message, you can pass it to Message object using RawBody property.

--
Regards,
Igor, AfterLogic Support
Back to Top View Igor's Profile Search for other posts by Igor
 
Igor
AfterLogic Support
AfterLogic Support


Joined: 24 June 2008
Location: United States
Online Status: Offline
Posts: 6104
Posted: 05 June 2009 at 7:27am | IP Logged Quote Igor

You'll find an example of RawBody usage here.

--
Regards,
Igor, AfterLogic Support
Back to Top View Igor's Profile Search for other posts by Igor
 
kanenas.net
Newbie
Newbie
Avatar

Joined: 05 June 2009
Location: Greece
Online Status: Offline
Posts: 3
Posted: 05 June 2009 at 7:38am | IP Logged Quote kanenas.net

Thanks for the quick reply.
We have already use all of the above and work very well.

I think you misunderstood what we were asking for, so i will try to explain with an example...

We have an email...

From: test@test.com
To: test1@test.com
Subject : This is a test
Attachements : 1.jpg, testing.eml , 2.pps

So...
Inside the testing.eml you will find...

From : kanenas@test.com
To : test3@test.com
Subject : This is another test
Attachments : 123.jpg, 456.jpg, 789.pps


How can i save to hard disk the attachements of the testing.eml !!!?!
Back to Top View kanenas.net's Profile Search for other posts by kanenas.net Visit kanenas.net's Homepage
 
Igor
AfterLogic Support
AfterLogic Support


Joined: 24 June 2008
Location: United States
Online Status: Offline
Posts: 6104
Posted: 05 June 2009 at 7:48am | IP Logged Quote Igor

You'll need to extract .eml attachment, assign it to Message object through RawBody property and retrieve attachment using SaveFile method.

--
Regards,
Igor, AfterLogic Support
Back to Top View Igor's Profile Search for other posts by Igor
 
kanenas.net
Newbie
Newbie
Avatar

Joined: 05 June 2009
Location: Greece
Online Status: Offline
Posts: 3
Posted: 05 June 2009 at 7:53am | IP Logged Quote kanenas.net

Thanks i will try this...
http://www.afterlogic.com/mailbee/docs/SAMPLE_Advanced03.htm

Back to Top View kanenas.net's Profile Search for other posts by kanenas.net Visit kanenas.net's Homepage
 

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