Rank: Newbie
Groups: Registered
Joined: 3/21/2016(UTC)
Posts: 6
Hi,
i always get an error "There's no message 0" when deleting over pop3 with ssl on and the following code:
Quote: Dim oServer As New EAGetMailObjLib.MailServer Dim oClient As New EAGetMailObjLib.MailClient oClient.LicenseCode = exLicense oServer.Server = exServer oServer.User = exUsername oServer.Password = exPassword oServer.Protocol = 0 oServer.SSLConnection = True oServer.AuthType = 0 oServer.Port = 995 oClient.Connect oServer Dim oInfo As New EAGetMailObjLib.MailInfo oInfo.UIDL = delMailUIDL oClient.Delete oInfo oClient.Quit oClient.Close
uidls are looking like this: 1461237332.2
Any idea ?
Rank: Administration
Groups: Administrators
Joined: 11/11/2010(UTC) Posts: 1,154
Thanks: 9 times Was thanked: 55 time(s) in 55 post(s)
Hi, you cannot use UIDL to delete the email directly like that.
Because UIDL is not persistent in POP3 protocol.
In POP3 protocol, you can only delete the email by index.
please see the following example:
Code:
Dim infos
infos = oClient.GetMailInfos()
Dim i As Integer
For i = LBound(infos) To UBound(infos)
Dim info As EAGetMailObjLib.MailInfo
Set info = infos(i)
if info.UIDL = "your uidl" Then
' Mark email as deleted from POP3 server.
oClient.Delete info
Exit For
End If
Next
oClient.Quit
Rank: Newbie
Groups: Registered
Joined: 3/21/2016(UTC)
Posts: 6
Great ! Thanks for the immediate help, that's it :) Regards, Michael
Forum Jump
EmailArchitect Support
Email Component Development
- EASendMail SMTP Component - .NET Version
- EASendMail SMTP Component - Windows Store Apps
- EASendMail SMTP ActiveX Object
- EAGetMail POP3 & IMAP4 Component - .NET Version
- EAGetMail POP3 & IMAP4 ActiveX Object
Exchange Server and IIS SMTP Plugin
- DomanKeys/DKIM for Exchange Server and IIS SMTP
- Disclaimer and S/MIME for Exchange Server and IIS
EmailArchitect Email Server
- EmailArchitect Email Server (General)
- EmailArchitect Email Server Development
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.