sitehelpdesk
12 years ago
Hi, please can anyone help – I’m struggling!!!

We have previously used EAGetEmail to access mailbox via IMAP and POP3 in ASP web pages without any issue. Now we are trying to access using EWS. We can connect to the server/mailbox but no emails are returned. I think this is because it is not looking in the Inbox folder. How can we used SelectFolder to set to use Inbox. Here is the code....




<%
Dim oClient, oServer

Set oClient = Server.CreateObject("EAGetMailObj.MailClient")
oClient.LicenseCode = "XXXXXXXXXXXXXXXXXXXXXXXX"
Set oServer = Server.CreateObject("EAGetMailObj.MailServer")

oServer.Server = MailServer
oServer.User = MailID
oServer.Password = MailPass
oServer.Protocol = 2
oServer.SSLConnection = True

oClient.Connect oServer

arInfo = oClient.GetMailInfos()

response.write "Error : " & Err.Description
response.write "Count : " & ubound(arInfo)


%>
ivan
  • ivan
  • 100% (Exalted)
  • Administration
12 years ago

Hi, please can anyone help – I’m struggling!!!

We have previously used EAGetEmail to access mailbox via IMAP and POP3 in ASP web pages without any issue. Now we are trying to access using EWS. We can connect to the server/mailbox but no emails are returned. I think this is because it is not looking in the Inbox folder. How can we used SelectFolder to set to use Inbox. Here is the code....




<%
Dim oClient, oServer

Set oClient = Server.CreateObject("EAGetMailObj.MailClient")
oClient.LicenseCode = "XXXXXXXXXXXXXXXXXXXXXXXX"
Set oServer = Server.CreateObject("EAGetMailObj.MailServer")

oServer.Server = MailServer
oServer.User = MailID
oServer.Password = MailPass
oServer.Protocol = 2
oServer.SSLConnection = True

oClient.Connect oServer

arInfo = oClient.GetMailInfos()

response.write "Error : " & Err.Description
response.write "Count : " & ubound(arInfo)


%>

sitehelpdesk wrote:



I received your email and solved the problem by a newer version of EAGetMail.

EXPLORE TUTORIALS

© All Rights Reserved, AIFEI Software Limited & AdminSystem Software Limited.