This article mainly introduces the code of sending emails asp+JMAIL. Interested friends can refer to it.
This article uses asp and JMAIL to send emails. Are you curious about how this is implemented? Let’s find out with the editor!
Global.asa File
What is a Global.asa file? It is actually an optional file in which the program writer can specify event scripts and declare objects with session and application scopes. The contents of this file are not used to display to the user, but to store event information and objects used globally by the application. The name of the file must be Global.asa and must be stored in the root directory of the application. Each application can only have one Global.asa file. The content is as follows:
?
- <script language=vbscriptrunat=server>
- sub Application_Onstart 'Initialization of the current number of online users and total number of visits.
- Application(online)=0
- Application(counter)=0
- End Sub
- Sub session_Onstart
- session.timeout=5 'Set the web page expiration time to 5 minutes
- application.lock
- application(online)=application(online)+1
- application(counter)=application(counter)+1
- application.unlock
- End Sub
- Sub session_OnEnd
- Application.lock
- Application(online)=Application(online)-1
- Application.unlock
- End Sub
- </script>