Attachments saved in a bad file - WeOnlyDo Discussion board

Attachments saved in a bad file (wodPop3)

by Gerard Llort, Thursday, December 28, 2006, 09:39 (4683 days ago)

Hello,

I'm getting well the messages but when I call the SAVE method on Attachment object, the file saved is a bad file. The body of message (text) is correct.

- The ENCODING property of this object equals 5 (5 bit) but I think this is wrong.
- I try to execute the wodPOP3 samples and this error is the same.

Here's the code:

Set oPOP3 = CreateObject( WeOnlyDo.wodPop3Com )
oPOP3.LicenseKey = LICKEY_WODPOP3
oPOP3.HostName = tAccounts.Account(iAccountIndex).Host
oPOP3.Login = tAccounts.Account(iAccountIndex).Login
oPOP3.Password = tAccounts.Account(iAccountIndex).Password
oPOP3.Blocking = True
oPOP3.Connect
oPOP3.Messages(iMsgID).Get
If oPOP3.Messages(iMsgID).Attachments.Count > 0 Then
For iCont = 0 To oPOP3.Messages(iMsgID).Attachments.Count - 1
sFile = xxxxxxx
oPOP3.Messages(iMsgID).Attachments(iCont).Save sFile
Next
End If
oPOP3.Disconnect

This code was running fine but I think (I'm not sure) when I update at last version start this error.

Any idea?

Thanks,

Gerard Llort
www.offshoretech.net

PD: Sorry for my basic english... ;-)


Complete thread: