Author |
|
sunitha Guest Group
Joined: 10 November 2003
Online Status: Online Posts: 262
|
Posted: 13 October 2005 at 12:26am | IP Logged
|
|
|
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 |
|
|
Alex AfterLogic Support
Joined: 19 November 2003
Online Status: Offline Posts: 2206
|
Posted: 13 October 2005 at 8:57am | IP Logged
|
|
|
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 |
|
|