VB自动接收邮件

前端之家收集整理的这篇文章主要介绍了VB自动接收邮件前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。
Private Sub Command1_Click()
'
    Dim pop3 As Object
    Dim EmailMsg As Object
    
    Set pop3 = CreateObject("JMail.POP3")
    pop3.Connect "username","password","mail.mydomain.com"
    Debug.Print CStr(pop3.Count) + " || " + CStr(Now)
    Me.Label1.Caption = CStr(pop3.Count) + " || " + CStr(Now)
    pop3.Disconnect
    Set pop3 = Nothing
    
End Sub
原文链接:https://www.f2er.com/vb/258715.html

猜你在找的VB相关文章