Search The ForumSearch   RegisterRegister  LoginLogin

MailBee POP3

 AfterLogic Forum : MailBee POP3
Subject Topic: downloading attachment Post ReplyPost New Topic
Author
Message << Prev Topic | Next Topic >>
sunitha
Guest Group
Guest Group


Joined: 10 November 2003
Online Status: Online
Posts: 262
Posted: 13 October 2005 at 12:26am | IP Logged Quote sunitha

Iam using mailbee for retrieving pop3 mails.
After retrieving mails,when iam trying to download attachment ,i was just getting filename without content.
     here is the code i have written for downloading attachment
       msg = m.RetrieveSingleMessage(1)
       For Each attach In msg.Attachments
       attc.Text = attach.filename
       next

when using attach.filename,iam just getting filename.
What to do if i need to download attachment along with content.

please help me.
Back to Top View sunitha's Profile Search for other posts by sunitha
 
Alex
AfterLogic Support
AfterLogic Support
Avatar

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

Please use Attachment.Content property to get the binary content of
the attachment as string. Thus, the line:

Code:

attc.Text = attach.filename


should be replaced with the following line:

Code:

attc.Text = attach.Content


You might also be interested in the Attachment.SaveFile method which allows you to save the attachment to disk.

Please look up at MailBee Help Reference for more details on Attachment object.

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