VB自动接收邮件

前端之家收集整理的这篇文章主要介绍了VB自动接收邮件前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。
  1. Private Sub Command1_Click()
  2. '
  3. Dim pop3 As Object
  4. Dim EmailMsg As Object
  5. Set pop3 = CreateObject("JMail.POP3")
  6. pop3.Connect "username","password","mail.mydomain.com"
  7. Debug.Print CStr(pop3.Count) + " || " + CStr(Now)
  8. Me.Label1.Caption = CStr(pop3.Count) + " || " + CStr(Now)
  9. pop3.Disconnect
  10. Set pop3 = Nothing
  11. End Sub

猜你在找的VB相关文章