wesleyw Posted October 17, 2006 Posted October 17, 2006 How would I connect to our IMAP server and authenticate using ASP the examples I've been given seem to need extra DLLs to run PHP can do it though? ASP Login IMAP Mail Server <% ' Demonstrates how to connect to and log into an IMAP server. set imap = Server.CreateObject("ChilkatImap.ChilkatImap") ' Any value passed to UnlockComponent begins the 30-day trial. unlocked = imap.UnlockComponent("30-day trial") if unlocked then ' Connect to your IMAP server. success = imap.Connect("mailserver.mycompany.com") if (success = 0) then ' IMAP connection failed. Response.write imap.LastErrorHtml else success = imap.Login("myLogin","myPassword") if (success = 0) then 'IMAP login failed Response.write imap.LastErrorHtml else Response.write "Connected and logged in!" ' That's it for this example, logout and disconnect. imap.Logout imap.Disconnect end if end if end if %> Any ideas guys? Wes
wesleyw Posted October 17, 2006 Author Posted October 17, 2006 Writing it in PHP isn't a problem but I'm modifying the Liberum Helpdesk to work outside school and using the email server as an authentication server? Wes
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now