亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關(guān)于我們
? 蟲蟲下載站

?? sendmail.cls

?? 簡單、實用、特別。 有很多不足之處
?? CLS
?? 第 1 頁 / 共 5 頁
字號:
                    End If
                    Sleep (10)
                    DoEvents
                Loop
            Loop
        Next iCtr

        If bMimeMultiPart = True Then
            ' send the MIME closing boundry header
            'Sleep (20)
            sckMail.SendData "--" & strBoundry & "--" & vbCrLf
        End If

        ' Send the 'end of mail' string
        pbRequestAccepted = False
        .SendData "." & vbCrLf
        If Not WaitUntilTrue(pbRequestAccepted, plMessageTimeOut, True) Then Exit Sub

    End With

    ' send completion notifications...
    RaiseEvent Progress(100)
    RaiseEvent Status("Transmission Complete...")

    ' if the Public Function Connect() was called,
    ' stay connected to the host, otherwise disconnect
    If Not pbManualDisconnect Then DisconnectFromHost

    RaiseEvent SendSuccesful

Exit Sub

Err_Send:

    ' add the error to the error collection
    AddError Err.Description
    SendFail

End Sub

Public Sub shutdown()

  ' stub function, here to maintain binary
  ' compatibility with previous versions.

End Sub

' ******************************************************************************
' *      Private Class Functions                                               *
' ******************************************************************************

Private Sub AddError(ByVal ErrStr As String)

  ' add error string to the error collection

    On Local Error Resume Next
      pColErrors.Add ErrStr, ErrStr

End Sub

Private Function AddressStringToLong(ByVal tmp As String) As Long

  ' convert an ip address string to a long value
  '
  ' THIS CODE IS BASED ON FUNCTIONS
  ' WITHIN RICHARD DEEMING'S IP UTILITIES:
  ' http://www.freevbcode.com

  Dim sParts()    As String

    sParts = Split(tmp, ".")

    If UBound(sParts) <> 3 Then
        AddressStringToLong = 0
        Exit Function
    End If

    ' build the long value out of the
    ' hex of the extracted strings
    AddressStringToLong = Val("&H" & Right$("00" & Hex$(sParts(3)), 2) & _
                          Right$("00" & Hex$(sParts(2)), 2) & _
                          Right$("00" & Hex$(sParts(1)), 2) & _
                          Right$("00" & Hex$(sParts(0)), 2))

End Function

Private Function bInEXE() As Boolean

  ' ******************************************************************************
  '
  ' Synopsis:     Check if application is running in the VB IDE or stand alone EXE.
  '
  ' Parameters:   none
  '
  ' Return:       True if running in EXE, False if running in IDE
  '
  ' Description:
  '
  ' Debug.print 1/0 will error produce a divide by zero error if running in IDE.
  ' If running in exe debug.print statement will be ignored
  '
  ' ******************************************************************************

  ' modified version of Brian Gillham's code
  ' sample available at www.freevbcode.com

    On Local Error GoTo ErrorHandler

    Debug.Print 1 / 0                               ' this line will fail in the IDE
    bInEXE = True                                   ' this line will execute only in EXE or dll

Exit Function

ErrorHandler:

    bInEXE = False

End Function

Private Function ConnectToHost() As Boolean

  Dim iCtr            As Integer
  Dim sHello          As String

    If bInEXE Then On Local Error GoTo Connect_Error

    ' already connected?
    If sckMail.State = sckConnected Then
        ConnectToHost = True
        Exit Function
      ElseIf sckMail.State <> sckClosed Then
        sckMail.CloseSocket
    End If

    ' check the SMTP host
    If Len(psSMTPHost) = 0 Then
        psSMTPHost = MXQuery
        If Len(psSMTPHost) = 0 Then
            AddError ERR_INVALID_HOST
            Exit Function
        End If
    End If

    ' Pop3 Authentication first?
    If pbUsePopAuthentication Then
        RaiseEvent Status("Connecting to POP3 Server (" & Me.POP3Host & ")...")
        pbExitImmediately = False
        pbConnected = False
        pbPopAuthOk = False
        plPop3Status = 0
        If Len(psPop3Host) = 0 Then
            AddError ERR_INVALID_POP_HOST
            SendFail
            Exit Function
        End If
        ' open POP3 connection
        With sckMail
            .RemoteHost = psPop3Host
            .RemotePort = POP3_PORT
            For iCtr = 1 To plConnectRetry
                If .State <> sckConnected Then
                    If .State = sckClosed Then .Connect
                    If WaitUntilTrue(pbConnected, plConnectTimeout, False) Then Exit For
                    If pbExitImmediately Then Exit Function
                    If .State = sckError Then .CloseSocket
                  Else
                    pbConnected = True
                    Exit For
                End If
            Next iCtr
            ' data arival event responds automatically
            WaitUntilTrue pbPopAuthOk, plConnectTimeout, False
            .CloseSocket
        End With
        DoEvents
        If pbExitImmediately Then Exit Function
        RaiseEvent Status("POP3 Authentication Successful...")
    End If

    ' reset var's
    pbRequestAccepted = False
    pbDataOK = False
    pbAuthLoginSupported = False
    pbAuthMailFromOK = False
    pbAuthLoginSuccess = False
    pbExitImmediately = False
    ConnectToHost = False
    pbConnected = False

    ' open an SMTP session...
    With sckMail

        ' setup the port
        If .State <> sckClosed Then .CloseSocket
        .RemoteHost = psSMTPHost
        .RemotePort = plSMTPPort

        ' open a connection with the remote host
        ' try 'plConnectRetry' times before giving up
        RaiseEvent Status("Connecting to SMTP Server (" & Me.SMTPHost & ")...")
        For iCtr = 1 To plConnectRetry
            If .State <> sckConnected Then
                If .State = sckClosed Then .Connect
                If WaitUntilTrue(pbConnected, plConnectTimeout, False) Then Exit For
                If pbExitImmediately Then Exit Function
                If .State = sckError Then .CloseSocket
              Else
                pbConnected = True
                Exit For
            End If
        Next iCtr

        ' if the connect attempt failed, exit
        If Not pbConnected Or Not WaitUntilTrue(pbRequestAccepted, plConnectTimeout, False) Then
            Timeout
            Exit Function
        End If

        ' once a connection is established, say 'hello
        RaiseEvent Status("Initializing Communications...")
        pbRequestAccepted = False
        ' EHLO is the extended (ESMTP) hello command, HELO is the standard hello command
        If pbUseAuthentication Then sHello = "EHLO " Else sHello = "HELO "
        .SendData sHello & Mid$(utMail.sFromAddr, InStr(utMail.sFromAddr, "@") + 1) & vbCrLf
        If Not WaitUntilTrue(pbRequestAccepted, plConnectTimeout, True) Then Exit Function

        ' Login Authentication ...
        ' the 'EHLO" command will cause the host to send a list of supported extensions
        ' via a series of 250 replies, wait to see if 'Auth Logon' is listed. The Sub
        ' sckMail_DataArrival will set pbUseAuthentication = True if Auth Login is
        ' supported by the remote host. If it is supported, Sub sckMail_DataArrival will
        ' respond to the host's Username & Password requests (psUserName, psPassword).
        If pbUseAuthentication = True Then
            If WaitUntilTrue(pbAuthLoginSupported, 5, False) Then
                RaiseEvent Status("Sending Login Authentication...")
                .SendData "AUTH Login" & vbCrLf
                If WaitUntilTrue(pbAuthLoginSuccess, 5, False) Then
                    RaiseEvent Status("Host Login OK!")
                  Else
                    RaiseEvent Status("Host Login Failed!")
                    Exit Function
                End If
                If pbExitImmediately Then Exit Function
              Else
                RaiseEvent Status("Login Not Supported by Host, Continuing...")
            End If
        End If

    End With

    ConnectToHost = True

Connect_Error:

End Function

Private Function CText(sIn As String, Optional bAddQuotesIfNotConverted As Boolean = False) As String

  '   'B' or 'Q' encode an ASCII string, defined in RFC 2047...
  '   The "B" encoding is identical to the "BASE64" encoding defined by RFC 1521.
  '   The "Q" encoding is similar to the "Quoted-Printable" content-
  '   transfer-encoding defined in RFC 1521.  It is designed to allow text
  '   containing mostly ASCII characters to be decipherable on an ASCII
  '   terminal without decoding.

  '   perform both & return the smaller of the two

  Dim iPtr            As Integer
  Dim bNeedsEncoding  As Boolean
  Dim iMax            As Integer
  Dim sChr            As String
  Dim sLine           As String
  Dim sQCode          As String
  Dim sBCode          As String
  Dim bytTmp()        As Byte

    If bInEXE Then On Local Error GoTo Err_Qtext

    ' scan for 8bit characters
    bytTmp() = StrConv(sIn, vbFromUnicode)

    For iPtr = 0 To UBound(bytTmp)
        If bytTmp(iPtr) > 126 Then
            bNeedsEncoding = True
            Exit For
        End If
    Next iPtr

    If Not bNeedsEncoding Then
        If bAddQuotesIfNotConverted Then
            ' if its part of an address string it needs
            ' to be quoted if it's returned as plain text
            CText = """" & sIn & """"
          Else
            CText = sIn
        End If
        Exit Function
    End If

    ' Q encode
    iMax = 54
    For iPtr = 1 To Len(sIn)
        sChr = Mid$(sIn, iPtr, 1)
        Select Case Asc(sChr)
            ' pass printable ascii as is, except "=" "?" "_" " "
          Case 33 To 60, 62, 64 To 94, 96 To 126
            sLine = sLine & sChr
            ' convert space to underscore (for readability)
          Case 32
            sLine = sLine & "_"
            ' Q Code everything else
          Case Else
            sLine = sLine & "=" & Right$("00" & Hex$(Asc(sChr)), 2)
        End Select
        If Len(sLine) >= iMax Then
            sQCode = sQCode & Q_CODE_HDR & sLine & CODE_END
            If iPtr < Len(sIn) Then sQCode = sQCode & vbCrLf & vbTab
            sLine = ""
        End If
    Next iPtr
    sQCode = sQCode & Q_CODE_HDR & sLine & CODE_END

    ' B encode
    iMax = 42
    sLine = sIn
    Do While Len(sLine)
        ' encode a line, maximun lenght is 76 characters
        ' <header><base64encoded text><end><CrLf>
        sBCode = sBCode & B_CODE_HDR & EncodeBase64String(Mid$(sLine, 1, iMax))
        ' strip off the CrLf & add END_CODE , CrLF & Tab
        sBCode = Mid$(sBCode, 1, Len(sBCode) - 2) & CODE_END
        ' get ready for the next line
        sLine = Mid$(sLine, iMax + 1)
        If Len(sLine) Then sBCode = sBCode & vbCrLf & vbTab
    Loop

    If Len(sQCode) < Len(sBCode) Then
        CText = sQCode
      Else
        CText = sBCode
    End If

Exit Function

Err_Qtext:

    CText = sIn

End Function

Public Function DecodeBase64String(ByVal str2Decode As String) As String

  ' ******************************************************************************
  '
  ' Synopsis:     Decode a Base 64 string
  '
  ' Parameters:   str2Decode  - The base 64 encoded input string
  '
  ' Return:       decoded string
  '
  ' Description:
  ' Coerce 4 base 64 encoded bytes into 3 decoded bytes by converting 4, 6 bit
  ' values (0 to 63) into 3, 8 bit values. Transform the 8 bit value into its
  ' ascii character equivalent. Stop converting at the end of the input string
  ' or when the first '=' (equal sign) is encountered.
  '
  ' ******************************************************************************

  Dim lPtr            As Long
  Dim iValue          As Integer
  Dim iLen            As Integer
  Dim iCtr            As Integer
  Dim Bits(1 To 4)    As Byte
  Dim strDecode       As String

    ' for each 4 character group....
    For lPtr = 1 To Len(str2Decode) Step 4
        iLen = 4
        For iCtr = 0 To 3
            ' retrive the base 64 value, 4 at a time
            iValue = InStr(1, BASE64CHR, Mid$(str2Decode, lPtr + iCtr, 1), vbBinaryCompare)
            Select Case iValue
                ' A~Za~z0~9+/
              Case 1 To 64
                Bits(iCtr + 1) = iValue - 1
                ' =
              Case 65
                iLen = iCtr
               

?? 快捷鍵說明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
日本v片在线高清不卡在线观看| 欧美酷刑日本凌虐凌虐| 亚洲大片精品永久免费| 亚洲美女免费在线| 欧美国产欧美综合| 国产精品视频一二| 日韩欧美在线影院| 精品国产乱码久久| 久久免费电影网| 国产女人18毛片水真多成人如厕 | 久久综合狠狠综合久久综合88| 欧美一区二区美女| 精品三级在线观看| 精品91自产拍在线观看一区| 精品盗摄一区二区三区| 久久综合色8888| 国产精品午夜电影| 国产精品高潮呻吟久久| 在线观看国产日韩| 国内精品不卡在线| 美女脱光内衣内裤视频久久网站 | 国产日韩综合av| 欧美激情中文不卡| 亚洲激情五月婷婷| 天天av天天翘天天综合网| 香蕉久久一区二区不卡无毒影院 | 捆绑紧缚一区二区三区视频| 无码av中文一区二区三区桃花岛| 亚洲图片欧美综合| 精品中文字幕一区二区小辣椒| 国产在线精品国自产拍免费| 免费成人小视频| 成人av资源站| 欧美猛男超大videosgay| 69av一区二区三区| 国产精品高潮呻吟| 奇米888四色在线精品| 国产一区三区三区| 午夜成人免费视频| 精品伊人久久久久7777人| av在线一区二区| 欧美日韩在线播放三区四区| 日韩欧美一区二区视频| 欧美极品少妇xxxxⅹ高跟鞋| 亚洲人成在线播放网站岛国| 天天影视色香欲综合网老头| 国产馆精品极品| 成人av资源在线观看| 日韩视频一区二区在线观看| 亚洲欧美日韩国产综合| 韩国女主播成人在线| 欧美日韩一区二区三区在线看 | 国产精品美女久久久久久久| 亚洲123区在线观看| av高清久久久| 欧美一级艳片视频免费观看| 亚洲欧美日韩国产一区二区三区 | 欧美吻胸吃奶大尺度电影| 久久只精品国产| 亚洲精选免费视频| 成人在线视频一区二区| 精品日产卡一卡二卡麻豆| 欧美日韩在线电影| 欧美乱妇23p| 成人免费一区二区三区在线观看| 国产一区二区看久久| 老司机精品视频导航| 日本黄色一区二区| 中文字幕一区在线观看视频| 久久99久久99小草精品免视看| 欧美人xxxx| 亚洲永久精品国产| 91美女蜜桃在线| 亚洲色图欧美激情| 成人午夜av影视| 国产精品麻豆久久久| 国产一区二区精品在线观看| 欧美岛国在线观看| 免费高清不卡av| 91精品国产入口| 午夜精品久久久久久不卡8050 | 精品国产伦一区二区三区观看方式| 热久久一区二区| 成人18视频日本| 国产清纯美女被跳蛋高潮一区二区久久w | 亚洲精品一区二区三区精华液| 精品久久国产97色综合| 亚洲第一激情av| 欧美性感一区二区三区| 亚洲日本韩国一区| av在线综合网| 日本一二三不卡| 91美女精品福利| 亚洲天堂久久久久久久| 不卡的av电影| 亚洲一区二区三区免费视频| 欧美性色黄大片手机版| 亚洲图片欧美一区| 67194成人在线观看| 老司机精品视频在线| 欧美大片在线观看| 9久草视频在线视频精品| 色综合一区二区三区| 国产日韩在线不卡| 激情图片小说一区| 精品sm在线观看| 美国精品在线观看| 久久女同精品一区二区| 99久久久精品| 丝袜美腿亚洲综合| 久久―日本道色综合久久| 国产风韵犹存在线视精品| 亚洲日穴在线视频| 56国语精品自产拍在线观看| 国内一区二区视频| 亚洲猫色日本管| 日韩美女视频一区二区在线观看| 国产高清在线精品| 亚洲精品国产第一综合99久久 | 亚洲最色的网站| 欧美日韩精品专区| 国产一区二区三区免费观看 | 91在线视频免费91| 蜜桃一区二区三区在线观看| 中文字幕av一区二区三区高| 欧美精品乱码久久久久久按摩| 国产iv一区二区三区| 亚洲一卡二卡三卡四卡无卡久久| 久久久精品免费观看| 欧美体内she精高潮| 国产精品亚洲午夜一区二区三区| 午夜一区二区三区视频| 国产午夜精品美女毛片视频| 欧美猛男gaygay网站| 99re这里只有精品首页| 国产原创一区二区三区| 亚洲成av人影院| 国产精品水嫩水嫩| 欧美一区二区三区不卡| 色婷婷精品大视频在线蜜桃视频 | 三级在线观看一区二区| 欧美亚洲综合网| 国产一区在线观看视频| 亚洲综合免费观看高清完整版在线| 精品国产一区二区三区不卡| 欧美日韩国产综合草草| 在线精品视频小说1| 成人高清视频免费观看| 日韩欧美另类在线| 99精品一区二区| 国产成人免费av在线| 狠狠色丁香婷婷综合久久片| 捆绑调教一区二区三区| 捆绑调教一区二区三区| 日本视频在线一区| 日韩电影一区二区三区| 亚洲成a人在线观看| 亚洲电影第三页| 亚洲二区在线视频| 夜夜精品浪潮av一区二区三区| 亚洲天堂福利av| 一区二区在线免费| 亚洲一区中文日韩| 午夜精品久久久久久久久久| 亚洲成人三级小说| 蜜臀av国产精品久久久久 | 国产乱子伦视频一区二区三区 | 亚洲一区二区3| 一区二区三区产品免费精品久久75| 亚洲国产经典视频| 中文字幕在线观看一区二区| 国产精品网曝门| 综合网在线视频| 亚洲天堂网中文字| 亚洲狠狠爱一区二区三区| 午夜视黄欧洲亚洲| 美国十次综合导航| 丰满白嫩尤物一区二区| 99久久婷婷国产综合精品电影 | 亚洲成人黄色小说| 午夜影视日本亚洲欧洲精品| 美国毛片一区二区| 国产馆精品极品| 欧美亚洲国产bt| 日韩欧美精品在线视频| 精品99一区二区| 亚洲欧洲精品成人久久奇米网| 一区二区久久久久久| 热久久一区二区| 国产精品一区二区久激情瑜伽| 成人性视频网站| 欧美日韩黄视频| 久久只精品国产| 国产精品亲子伦对白| 亚洲成人三级小说| 国产一区二区看久久| 色综合av在线| 精品国产区一区| 亚洲影视资源网| 国产一区二区三区日韩|