Use the W3 JMAIL component to receive POP3 mail

Source: Internet
Author: User
Dim startpage
Dim endpage
Startpage = int (request ("start "))
Endpage = int (request ("end "))
Set pop3 = Server. CreateObject ("JMail. POP3 ")
Uid = trim (request ("uid "))
Pwd = trim (request ("pwd "))
Pop = trim (request ("pop "))

If uid = "" or pwd = "" or pop = "" then
Response. redirect "receivemail. asp"
End if

If uid <> "" and pwd <> "" and pop <> "" then
Response. cookies ("uid") = trim (request ("uid "))
Response. cookies ("pwd") = trim (request ("pwd "))
Response. cookies ("pop") = trim (request ("pop "))
Uid = request. cookies ("uid ")
Pwd = request. cookies ("pwd ")
Pop = request. cookies ("pop ")
End if
Pop3.Connect uid, pwd, pop

'Pop3. Connect "agang0084", "921028", ""
Response. write "<div align = center>"
Response. Write ("Your Inbox has <font color = red>" & pop3.count & "</font> emails <br> ")
Response. write "</div>"

'Page number calculated
Pagenum = 10' several records exist on one page
If pop3.count <pagenum then
Pagecount = 1
Intcount = int (pop3.count/pagenum)
Modcount = pop3.count mod pagenum
If modcount> 0 then
Pagecount = intcount + 1' if the total number of records divided by the number of records that can be stored on one page has an remainder, the number of pages must be one
Pagecount = intcount
End if
End if

Response. write ("your emails" & pagecount & "page & nbsp ;")

'Calculate the page number
Page = trim (request ("page "))
Related Article

E-Commerce Solutions

Leverage the same tools powering the Alibaba Ecosystem

Learn more >

Apsara Conference 2019

The Rise of Data Intelligence, September 25th - 27th, Hangzhou, China

Learn more >

Alibaba Cloud Free Trial

Learn and experience the power of Alibaba Cloud with a free trial worth $300-1200 USD

Learn more >

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: and provide relevant evidence. A staff member will contact you within 5 working days.