首页 » ASP代码 » 利用jmail收邮件的Asp代码

利用jmail收邮件的Asp代码

<%'以下代码演示了如何收取到邮件,为了加快速度下面只收取了2封,看起来都是从最新的开始收。我们无法确认哪些是已读的,哪些是已经收取过的,您必须在本地建一个MessageUid库,在遍历邮箱Uid时,与本地对比,无则表示新的未读邮件
  login_serv = "pop3.163.com"
  login_user = "a123456@163.com"
  login_pass = "password"	
 
  Set pop3 = Server.CreateObject("JMail.POP3")
  pop3.Connect login_user, login_pass, login_serv
  mailcount=pop3.count
  if mailcount > 0  then
  	response.Write "您邮箱共有:" & pop3.count & "封邮件<hr />"
	for i=1 to 2
	   'ids= pop3.GetMessageUID(i) '这个就是标准邮件协议中的唯一ID,在服务器中是唯一的。
	   Set msg = pop3.Messages(i)
	   response.Write msg.Subject & "<br />"
	next
  end if	
  pop3.Disconnect()
  'Jmail还有很多属性和方法,请参考网上的资料
%>

, , , ,

转发到新浪微博 转发到新浪微博

目前这篇文章有45条评论(Rss)

  1. web design in chester | #1
    05/17/2012 at 06:59

    wohh precisely what I was searching for, appreciate it for putting up.

  2. london escort | #2
    05/17/2012 at 07:17

    I precisely wished to say thanks once again. I am not sure what I would have sorted out in the absence of these strategies discussed by you regarding my situation. Completely was a real terrifying concern for me personally, nevertheless noticing the very skilled fashion you solved that took me to jump over fulfillment. I will be grateful for this work and then hope you realize what a powerful job you happen to be providing educating other individuals by way of your web page. I am certain you haven’t got to know all of us.

  3. porn videos | #3
    05/17/2012 at 07:32

    I hope you never stop! This is one of the best blogs Ive ever read. Youve got some mad skill here, man. I just hope that you dont lose your style because youre definitely one of the coolest bloggers out there. Please keep it up because the internet needs someone like you spreading the word.

  4. cat scrtching posts | #4
    05/17/2012 at 08:01

    Hi, I just found your weblog via Bing. Your article is truly pertinent to my life right now, and I’m really delighted I discovered your website.

  5. nike free 3.0 | #5
    05/17/2012 at 09:32

    Excellent read, I just passed this onto a friend who was doing a little analysis on that. And he really bought me lunch because I discovered it for him smile So let me rephrase that: Thanks for lunch!

我要评论