Author |
|
itzik Newbie
Joined: 28 August 2006 Location: Israel
Online Status: Offline Posts: 3
|
Posted: 29 August 2006 at 3:41am | IP Logged
|
|
|
Hello,
Can I pul a mail to read without it attachment?
Thank you,
Itzik
|
Back to Top |
|
|
Andrew AfterLogic Support
Joined: 28 April 2006 Location: United States
Online Status: Offline Posts: 1189
|
Posted: 29 August 2006 at 7:38am | IP Logged
|
|
|
Unfortunately POP3 protocol does not support such feature. However, you can download message partially by specifying the second parameter (BodyLinesCount) to RetrieveSingleMessageHeaders method as follows (in VB6 syntax):
Code:
Dim Mailer, Msg
Set Mailer = CreateObject("MailBee.POP3")
Mailer.LicenseKey = "put your license key here"
Mailer.Connect "mailserver.com", 110, "MyName", "MyPassword"
If Mailer.Connected Then
If Mailer.MessageCount > 0 Then
Set Msg = Mailer.RetrieveSingleMessageHeaders(1, 10) ' Also download first 10 lines of body
If Not Msg Is Nothing Then
MsgBox "Body preview: " & Msg.BodyText
End If
End If
Mailer.Disconnect
End If
|
|
|
RetrieveHeaders method of POP3 object supports BodyLinesCount parameter too. Thus, you can partially download all the messages in mailbox.
Best regards,
Andrew
|
Back to Top |
|
|