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

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? sendmail.cls

?? 簡單、實用、特別。 有很多不足之處
?? CLS
?? 第 1 頁 / 共 5 頁
字號:
    End If

    SocketsCleanup

End Function

Public Function GetIPHost() As String

  ' Resolves the local host name
  '
  ' THIS CODE IS BASED ON FUNCTIONS
  ' WITHIN RICHARD DEEMING'S IP UTILITIES:
  ' http://www.freevbcode.com

  Dim sHostName   As String
  Dim iPtr        As Integer

    ' create a buffer
    sHostName = String$(256, Chr$(0))

    ' init winsock api
    If Not SocketsInitialize() Then Exit Function

    ' get the loacal hosts name
    If gethostname(sHostName, Len(sHostName)) = ERROR_SUCCESS Then
        iPtr = InStr(sHostName, Chr$(0))
        If iPtr > 1 Then GetIPHost = Mid$(sHostName, 1, iPtr - 1)
    End If

    SocketsCleanup

End Function

Public Function IsValidEmailAddress(AddressString As String)  ' As Boolean

  Dim sTmp()      As String

    ' assume failure
    IsValidEmailAddress = False

    ' sould have one "@"
    sTmp = Split(AddressString, "@")
    If UBound(sTmp) <> 1 Then Exit Function

    IsValidEmailAddress = IsValidIPHost(sTmp(1))

End Function

Public Function MXQuery(Optional IPDomain As String = "") As String

  Dim sDomain     As String

    ' return the best server found in an MX Query

    If bInEXE Then On Local Error GoTo Err_MXQuery

    sDomain = Trim$(IPDomain)

    If Len(sDomain) Then
        RaiseEvent Status("Performing MX Query, Domain: " & sDomain)
      Else
        RaiseEvent Status("Performing MX Query")
    End If

    MXQuery = MX_Query(sDomain)

Exit Function

Err_MXQuery:

    MXQuery = vbNullString
    RaiseEvent Status(Err.Description)

End Function

Public Function Ping(Address As String, _
                     Optional RoundTripTime As String = "", _
                     Optional DataSize As String = "", _
                     Optional DataMatch As Boolean = False) As Boolean

  ' Ping a remote host
  '
  ' THIS CODE IS BASED ON FUNCTIONS
  ' WITHIN RICHARD DEEMING'S IP UTILITIES:
  ' http://www.freevbcode.com

  Dim ECHO            As ICMP_ECHO_REPLY
  Dim iPtr            As Integer
  Dim Dt              As String
  Dim sAddress        As String
  Dim hPort           As Long
  Dim lAddress        As Long
  Dim bytAddr(3)      As Byte

    If bInEXE Then On Local Error GoTo DPErr

    ' assume failure
    Ping = False

    ' if passed a name, get the IP address
    If Not IsDottedQuad(Address) Then
        sAddress = GetIPAddress(Address)
      Else
        sAddress = Address
    End If

    If sAddress = "" Then Exit Function

    If SocketsInitialize Then

        ' build string of random characters
        For iPtr = 1 To DATA_SIZE
            Dt = Dt & Chr$(Rnd() * 254 + 1)
        Next iPtr

        ' ping an ip address, passing the
        ' address and the ECHO structure
        lAddress = AddressStringToLong(sAddress)
        hPort = IcmpCreateFile()
        IcmpSendEcho hPort, lAddress, Dt, Len(Dt), 0, ECHO, Len(ECHO), PING_TIMEOUT
        IcmpCloseHandle hPort

        ' get the results from the ECHO structure
        RoundTripTime = ECHO.RoundTripTime
        CopyMemory bytAddr(0), ECHO.Address, 4
        Address = CStr(bytAddr(0)) & "." & _
                  CStr(bytAddr(1)) & "." & _
                  CStr(bytAddr(2)) & "." & _
                  CStr(bytAddr(3))

        DataSize = ECHO.DataSize & " bytes"

        iPtr = InStr(ECHO.Data, Chr$(0))
        If iPtr > 1 Then DataMatch = (Left$(ECHO.Data, iPtr - 1) = Dt)
        If ECHO.Status = 0 And ECHO.Address = lAddress Then Ping = True

        SocketsCleanup

    End If

Exit Function

DPErr:

End Function

Public Sub send()

  Dim sSenderName         As String
  Dim sToHeader           As String
  Dim sCcHeader           As String
  Dim iCtr                As Integer
  Dim sAuth               As String
  Dim sTxt                As String
  Dim strBoundry          As String
  Dim bMimeMultiPart      As Boolean
  Dim fStart              As Single
  Dim fTimeOut            As Single
  Dim lSendBuffSize       As Long
  Dim bRelatedLinks       As Boolean

    ' general catch all error handler only
    ' works when running in stand alone EXE
    If bInEXE Then On Local Error GoTo Err_Send

    ' check for multipart MIME
    If etEncodeType = MIME_ENCODE And utMail.lAttachCount > 0 Then
        bMimeMultiPart = True
      Else
        bMimeMultiPart = False
    End If

    ' check sender
    If Len(utMail.sFromAddr) = 0 Then AddError ERR_INVALID_SND_EMAIL

    ' HTML & UU Encode are mutually exclusive
    If pbHtmlText = True And etEncodeType = UU_ENCODE Then AddError ERR_HTML_REQUIRES_MIME

    ' check recipient count
    If UBound(utMail.sToAddr) + UBound(utMail.sCcAddr) + UBound(utMail.sBccAddr) = -3 Then AddError ERR_NO_REC_EMAIL
    If UBound(utMail.sToAddr) + UBound(utMail.sCcAddr) + UBound(utMail.sBccAddr) + 3 > MAX_RECIPIENTS Then AddError ERR_RECIPIENT_COUNT

    ' resize the display name arrays to match the recipient arrays
    iCtr = UBound(utMail.sToAddr)
    If iCtr >= 0 Then ReDim Preserve utMail.sToDisplayName(iCtr)
    iCtr = UBound(utMail.sCcAddr)
    If iCtr >= 0 Then ReDim Preserve utMail.sCcDisplayName(iCtr)

    ' we won't try to send if there's already an error
    If pColErrors.Count > 0 Then
        SendFail
        Exit Sub
    End If

    ' get the Content-Location for any linked objects
    If utMail.lAttachCount Then bRelatedLinks = GetAttachCID

    ' get the mail size
    plMailSize = EstimateMailSize

    ' this flag gets set when a socket error occurs or the host cannot process an
    ' input command, see 'SendFail', 'sckMail_DataArrival' & 'WaitUntilTrue' Subs
    pbExitImmediately = False

    With sckMail

        ' if not already conected then connect to the remote host
        If .State <> sckConnected Then
            If Not ConnectToHost Then Exit Sub
        End If

        ' reset the progress counter
        plBytesSent = 0

        ' tell the host who the mail is 'From
        RaiseEvent Status("Sending Sender Information...")
        pbRequestAccepted = False
        If pbAuthMailFromOK Then sAuth = " AUTH=" & utMail.sFromAddr Else sAuth = vbNullString
        .SendData "MAIL FROM: <" & utMail.sFromAddr & ">" & sAuth & vbCrLf
        If Not WaitUntilTrue(pbRequestAccepted, plMessageTimeOut, True) Then Exit Sub
        If pbExitImmediately Then Exit Sub

        ' tell the host who the recipients are
        ' build the 'To:' header string 'sToHeader' too
        RaiseEvent Status("Sending Recipient Information...")
        For iCtr = 0 To UBound(utMail.sToAddr)
            ' send the recipient address & wait for a reply
            pbRequestAccepted = False
            .SendData "RCPT TO: <" & utMail.sToAddr(iCtr) & ">" & vbCrLf
            If Not WaitUntilTrue(pbRequestAccepted, plMessageTimeOut, True) Then Exit Sub
            If pbExitImmediately Then Exit Sub

            ' build the 'To:' header string for later...
            If Len(utMail.sToDisplayName(iCtr)) Then
                sToHeader = sToHeader & CText(utMail.sToDisplayName(iCtr), True)
              Else
                sToHeader = sToHeader & """" & Trim$(utMail.sToAddr(iCtr)) & """"
            End If
            sToHeader = sToHeader & " <" & utMail.sToAddr(iCtr) & ">"
            If iCtr < UBound(utMail.sToAddr) Then sToHeader = sToHeader & ", " & vbCrLf & vbTab
        Next iCtr

        ' send Cc: recipient addresses (just more 'RCPT TO' addresses)
        ' build the 'Cc:' header string too
        For iCtr = 0 To UBound(utMail.sCcAddr)
            ' send the recipient address & wait for a reply
            pbRequestAccepted = False
            .SendData "RCPT TO: <" & utMail.sCcAddr(iCtr) & ">" & vbCrLf
            If Not WaitUntilTrue(pbRequestAccepted, plMessageTimeOut, True) Then Exit Sub
            If pbExitImmediately Then Exit Sub

            ' build the 'Cc:' header string for later...
            If Len(utMail.sCcDisplayName(iCtr)) Then
                sCcHeader = sCcHeader & CText(utMail.sCcDisplayName(iCtr), True)
              Else
                sCcHeader = sCcHeader & """" & Trim$(utMail.sCcAddr(iCtr)) & """"
            End If

            sCcHeader = sCcHeader & " <" & utMail.sCcAddr(iCtr) & ">"
            If iCtr < UBound(utMail.sCcAddr) Then sCcHeader = sCcHeader & ", " & vbCrLf & vbTab
        Next iCtr

        ' send Bcc: recipient addresses (more of the same)
        ' no display headers here, these are blind
        For iCtr = 0 To UBound(utMail.sBccAddr)
            ' send the recipient address & wait for a reply
            pbRequestAccepted = False
            .SendData "RCPT TO: <" & Trim$(utMail.sBccAddr(iCtr)) & ">" & vbCrLf
            If Not WaitUntilTrue(pbRequestAccepted, plMessageTimeOut, True) Then Exit Sub
            If pbExitImmediately Then Exit Sub
        Next iCtr

        ' tell the remote host we're ready to send data
        RaiseEvent Status("Sending Message...")
        pbDataOK = False
        .SendData "DATA" & vbCrLf
        If Not WaitUntilTrue(pbDataOK, plMessageTimeOut, True) Then Exit Sub
        If pbExitImmediately Then Exit Sub

        ' OK, the host is ready for data, this is where the mail message starts
        ' Send the mail headers (the ones displayed on the target email client)
        pbRequestAccepted = False

        ' from, to, cc & subject headers..
        If Len(Trim$(utMail.sFromDisplayName)) Then
            sSenderName = CText(utMail.sFromDisplayName, True)
          Else
            sSenderName = """" & utMail.sFromAddr & """"
        End If
        sSenderName = sSenderName & " <" & utMail.sFromAddr & ">"
        .SendData "From: " & sSenderName & vbCrLf
        .SendData "To: " & sToHeader & vbCrLf
        If Len(sCcHeader) Then .SendData "Cc: " & sCcHeader & vbCrLf
        .SendData "Subject: " & CText(utMail.sSubject) & vbCrLf
        If Len(utMail.sReplyToAddr) Then .SendData "Reply-to: <" & utMail.sReplyToAddr & ">" & vbCrLf
        ' send English foramted date/time string
        .SendData "Date: " & psDay(Weekday(Now)) & ", " & Day(Now) & " " & psMonth(Month(Now)) & _
                  Format$(Now, " yyyy hh:nn:ss ") & psTimeZoneBias & vbCrLf

        ' MIME headers...
        If etEncodeType = MIME_ENCODE Then
            ' create a Unique-Boundary string for multi-part MIME encoding
            strBoundry = "----_=_NextPart_000_" & Right$("00000000" & Hex$(Date), 8) & "." & Right$("00000000" & Hex$(CLng(Time * 10 ^ 8)), 8)
            
            .SendData "MIME-Version: 1.0" & vbCrLf
            If etPriority <> NORMAL_PRIORITY Then
                .SendData "X-Priority: " & Trim$(Str$(etPriority)) & vbCrLf
                .SendData "X-MSMail-Priority: " & psPriority & vbCrLf
            End If
            If pbReceipt Then .SendData "Disposition-Notification-To: " & sSenderName & vbCrLf
            ' if it's multi part send the boundry info
            If bMimeMultiPart Then
                If bRelatedLinks Then
                    .SendData "Content-Type: multipart/related;" & vbCrLf
                  Else
                    .SendData "Content-Type: multipart/mixed;" & vbCrLf
                End If
                .SendData vbTab & "boundary=" & """" & strBoundry & """" & vbCrLf & vbCrLf
                .SendData "This is a multi-part message in MIME format." & vbCrLf & vbCrLf
                ' send the MIME boundry and content headers for the message body
                .SendData "--" & strBoundry & vbCrLf
            End If
            ' plain or html text...
            If pbHtmlText Then sTxt = "text/html;" Else sTxt = "text/plain;"
            .SendData "Content-Type: " & sTxt & vbCrLf
            .SendData vbTab & "charset=" & """" & CHAR_SET & """" & vbCrLf
            If pb8BitMail Then sTxt = "8bit" Else sTxt = "7bit"
            .SendData "Content-Transfer-Encoding: " & sTxt & vbCrLf
            ' if we're sending html & the user supplied the content base then send it too
            If pbHtmlText Then If Len(psContentBase) Then .SendData "Content-Base: " & """" & psContentBase & """" & vbCrLf
        End If

        .SendData vbCrLf & vbCrLf

        ' Send the message body
        .SendData utMail.sMailMessage & vbCrLf & vbCrLf & vbCrLf

        ' Send attachments, if any...
        For iCtr = 0 To utMail.lAttachCount - 1
            If utMail.bAttachCID(iCtr) Then
                RaiseEvent Status("Sending Embedded File, " & utMail.sAttachNameOnly(iCtr) & "...")
              Else
                RaiseEvent Status("Sending Attachment, " & utMail.sAttachNameOnly(iCtr) & "...")
            End If
            If etEncodeType = MIME_ENCODE Then
                ' send the next MIME boundry & content headers
                .SendData "--" & strBoundry & vbCrLf
                .SendData "Content-Type: " & GetContentType(utMail.sAttachNameOnly(iCtr)) & ";" & vbCrLf
                .SendData vbTab & "name=" & """" & utMail.sAttachNameOnly(iCtr) & """" & vbCrLf
                .SendData "Content-Transfer-Encoding: base64" & vbCrLf
                .SendData "Content-Disposition: attachment;" & vbCrLf
                .SendData vbTab & "filename=" & """" & utMail.sAttachNameOnly(iCtr) & """" & vbCrLf
                If (bRelatedLinks And utMail.bAttachCID(iCtr)) Then
                    .SendData "Content-ID: <" & utMail.sAttachNameOnly(iCtr) & ">" & vbCrLf
                End If
                .SendData vbCrLf
                ' send the encoded file
                EncodeAndSendFile utMail.sAttachment(iCtr), MIME_ENCODE
                If pbExitImmediately Then Exit Sub
                .SendData vbCrLf
              Else
                ' start a UUEncode session
                .SendData "begin 600 " & utMail.sAttachNameOnly(iCtr) & vbCrLf
                ' send the encoded file
                EncodeAndSendFile utMail.sAttachment(iCtr), UU_ENCODE
                If pbExitImmediately Then Exit Sub
                ' send the ending sequence
                .SendData "end" & vbCrLf
            End If

            ' the sckMail Send buffer now holds the current file
            ' if its a large file, wait here for the buffer to
            ' empty before loading the next one
            Do While plBytesRemaining > 4096
                ' timeout code...
                fStart = Timer
                ' Deal with timer being reset at Midnight
                If fStart + plMessageTimeOut < 86400 Then
                    fTimeOut = fStart + plMessageTimeOut
                  Else
                    fTimeOut = (fStart - 86400) + plMessageTimeOut
                End If
                ' wait for a change in the send buffer
                ' if it's changing, everything is OK
                lSendBuffSize = plBytesRemaining
                Do Until lSendBuffSize <> plBytesRemaining
                    If plBytesRemaining < 4096 Then Exit Do
                    If Timer >= fTimeOut Then
                        Timeout
                        Exit Sub

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
欧美色网站导航| 青青草国产成人av片免费| 一区二区三区四区在线免费观看| 亚洲色图欧美在线| 亚洲国产sm捆绑调教视频 | gogogo免费视频观看亚洲一| 色婷婷激情综合| 欧美一区二区性放荡片| 国产亲近乱来精品视频| 亚洲激情图片一区| 裸体歌舞表演一区二区| 99久久国产综合精品女不卡| 在线播放国产精品二区一二区四区| 日韩免费成人网| 国产精品美女久久久久久2018| 亚洲综合精品久久| 韩国欧美国产1区| 色综合天天天天做夜夜夜夜做| 欧美一区二区三区精品| 中文字幕视频一区| 久久国产精品色| 91蜜桃网址入口| 欧美一级午夜免费电影| 国产精品欧美久久久久一区二区| 视频一区中文字幕| 成人午夜精品在线| 日韩一区和二区| 国产精品久久毛片av大全日韩| 亚洲mv在线观看| 成人免费精品视频| 欧美成人三级在线| 亚洲国产日韩a在线播放性色| 国产精品99久| 91精品免费观看| 亚洲欧美日韩国产另类专区 | 在线不卡中文字幕播放| 国产精品国产三级国产aⅴ中文| 日韩在线卡一卡二| 99re免费视频精品全部| 亚洲精品在线观看视频| 日韩精品欧美精品| 欧洲精品在线观看| 中文字幕免费不卡在线| 麻豆一区二区三区| 欧美精品久久一区二区三区| 综合激情网...| 国产精品一级片| 日韩欧美自拍偷拍| 天天色图综合网| 一本大道久久a久久精品综合| 久久久久久毛片| 捆绑调教一区二区三区| 欧美精品久久一区| 亚洲一区二区三区视频在线播放| 成人黄色大片在线观看| 久久久欧美精品sm网站| 捆绑调教一区二区三区| 欧美精品aⅴ在线视频| 一区二区免费视频| 91在线国内视频| 中文字幕一区二区三区在线不卡| 国产精品中文有码| 欧美大片一区二区| 日本大胆欧美人术艺术动态| 欧美日韩在线播放三区四区| 亚洲三级在线观看| 99久久亚洲一区二区三区青草| 久久精品亚洲精品国产欧美| 国模冰冰炮一区二区| 久久综合九色综合97婷婷| 蜜臀av一区二区三区| 欧美一区二区三区的| 欧美a一区二区| 欧美一区二区三区在线看| 日本不卡的三区四区五区| 欧美一区在线视频| 美女视频第一区二区三区免费观看网站| 欧美日韩国产高清一区二区三区 | 国产成人午夜精品5599| 国产婷婷色一区二区三区四区| 国产一区二区在线视频| 欧美成人精品1314www| 久久精品国产77777蜜臀| 2024国产精品| 国产成人午夜精品5599| 国产精品护士白丝一区av| www.色综合.com| 亚洲精品成人悠悠色影视| 欧美撒尿777hd撒尿| 午夜欧美一区二区三区在线播放| 欧美精品自拍偷拍| 精品一区二区三区的国产在线播放| 精品国产乱码91久久久久久网站| 国内精品免费**视频| 国产欧美一区二区在线| 99re在线视频这里只有精品| 亚洲福利一区二区| 日韩丝袜情趣美女图片| 国产乱码字幕精品高清av| 国产精品私人自拍| 色综合久久88色综合天天免费| 午夜伊人狠狠久久| 欧美大片一区二区| 成人精品免费看| 亚洲三级免费观看| 欧美欧美欧美欧美首页| 另类小说色综合网站| 国产精品久久久久婷婷| 欧美体内she精高潮| 久久99久久久久| 中文在线资源观看网站视频免费不卡| 色综合天天综合网天天狠天天| 日韩成人av影视| 日本一区二区视频在线| 欧美制服丝袜第一页| 蜜臀av性久久久久蜜臀aⅴ| 欧美激情在线一区二区三区| 欧亚一区二区三区| 狠狠v欧美v日韩v亚洲ⅴ| 最新高清无码专区| 制服丝袜一区二区三区| 国产精华液一区二区三区| 尤物av一区二区| 日韩欧美的一区二区| 99热国产精品| 免费观看成人av| 专区另类欧美日韩| 欧美一区二区三区在线视频| aaa国产一区| 日本成人在线电影网| 国产精品嫩草99a| 91精品国产综合久久精品app| 国产成人综合在线| 五月婷婷激情综合网| 欧美国产精品一区二区三区| 欧美欧美欧美欧美首页| 不卡一卡二卡三乱码免费网站| 日韩激情一二三区| 综合色天天鬼久久鬼色| 精品国一区二区三区| 欧美在线观看你懂的| 国产电影精品久久禁18| 国产成人av电影在线观看| 一二三区精品福利视频| 久久综合色8888| 欧美嫩在线观看| av中文一区二区三区| 黄色资源网久久资源365| 亚洲v中文字幕| 国产精品麻豆一区二区| 欧美精品一区二区三区在线播放| 在线观看免费成人| 成人avav影音| 国产在线麻豆精品观看| 视频在线在亚洲| 夜夜嗨av一区二区三区网页| 日本一区二区三区四区 | 久久超碰97中文字幕| 一区二区三区精品在线观看| 国产女人aaa级久久久级| 欧美白人最猛性xxxxx69交| 欧美日韩一区中文字幕| www.亚洲色图.com| 国产91精品在线观看| 奇米精品一区二区三区在线观看 | 黄网站免费久久| 日韩高清不卡一区二区三区| 亚洲精品老司机| 中文字幕在线不卡国产视频| 久久久久久久久蜜桃| 日韩欧美另类在线| 51精品视频一区二区三区| 欧美日韩另类一区| 欧美日韩中文一区| 日本久久一区二区三区| 99国产精品久久久久久久久久 | 国产精品午夜电影| 国产女人18水真多18精品一级做| 久久综合九色综合97_久久久| 精品久久久久久久一区二区蜜臀| 在线不卡一区二区| 91精品国产综合久久婷婷香蕉| 欧美日精品一区视频| 欧美日韩视频在线观看一区二区三区 | 欧美日韩一区 二区 三区 久久精品| 成人性生交大片免费看视频在线 | 中文字幕成人在线观看| 久久久.com| 国产欧美日韩激情| 国产欧美精品一区aⅴ影院| 国产性色一区二区| 中文一区二区完整视频在线观看| 久久久久久久久久久久久久久99 | 国产中文字幕一区| 国模少妇一区二区三区| 懂色av一区二区在线播放| 成人福利在线看| 一道本成人在线| 欧美精品色综合| 精品免费一区二区三区|