Jump to content
EduGeek EdSec 2026 is Go! 27th Oct in Derby! Join us for a day of EdTech security focused talks, networking, and an evening social ×

Recommended Posts

Posted

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

Posted

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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now



×
×
  • Create New...