Rank: Newbie
Groups: Registered
Joined: 3/26/2013(UTC) Posts: 1
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.... <!--#include file="MailConst.asp"--> <% 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) %>
Rank: Administration
Groups: Administrators
Joined: 11/11/2010(UTC) Posts: 1,153
Thanks: 9 times Was thanked: 55 time(s) in 55 post(s)
sitehelpdesk wrote: 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.... <!--#include file="MailConst.asp"--> <% 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) %>
I received your email and solved the problem by a newer version of EAGetMail.
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.