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

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

?? smtp.tcl

?? 這是vxworks 的圖形界面開發軟件windML2.0的補丁CP2。
?? TCL
字號:
# SMTP.TCL - sent mail routine
#
# Copyright 1996 Wind River Systems, Inc.
#
# modification history
# -----------------------
# 01a,19apr96,sks  written.
#

#########
#
# smtpMailSend - Using the Tclized socket interface provided in the
# "GensockTcl.dll", this routine sends e-mail via the SMTP protocol.
# Arguments include:
#
#    sender - "From:" name of the SMTP sender
#    toList - "To:" a list containing SMTP recipent addresses
#    ccList - "Cc:" a list containing SMTP "Cc:" recipent addresses
#    bccList - "Bcc" a list containing SMTP "Bcc:" (blind) recipent addresses
#    subject - the subject line for the message
#    msgContents - the name of the file containing the message to be sent
#    server - the SMTP server name
#    attachmentList - a list of files to be attached
#

proc smtpMailSend {mailDate sender toList ccList bccList subject    \
                   msgContents server attachmentList} {
    global setupVals

    set error ""
    set msgFile ""
    set smtpSocket ""

    if {$error == ""} {
        # Connect to the SMTP server

        if {[catch {gensockConnect $server "smtp"} smtpSocket] && \
            [catch {gensockConnect $server "25"} smtpSocket]} {

            set error "unable to connect to SMTP server '$server'"
            puts "Error: $smtpSocket"
            set smtpSocket ""
        }
    }

    if {$error == ""} {
        # The first line from the SMTP server should be "220".

        if {[catch "gensockGetLine $smtpSocket" response] || \
            ![string match "220*" $response]} {

            set error "SMTP server error: $response");
        }
    }

    if {$error == ""} {
        # Fetch the name of this host to be provided to the SMTP server.

        set thisHostName [gensockGetHostname]

        # "Login" to the SMTP server and response should be "250".

        set message "HELO $thisHostName\r\n"

        if {[catch {gensockPutData $smtpSocket $message [string length $message]} \
             response] || [catch {gensockGetLine $smtpSocket} response] || \
            ![string match "250*" $response]} {

            set error "SMTP server error: $response"
         }
    }

    if {$error == ""} {
        # Announce the sender and the response should be "250".

        set message "MAIL From:<$sender>\r\n"

        if {[catch {gensockPutData $smtpSocket $message [string length $message]} \
             response] || [catch {gensockGetLine $smtpSocket} response] || \
            ![string match "250*" $response]} {

            set error "SMTP server does not recognize '$sender': $response"
        }
    }

    if {$error == ""} {
        set recipients [concat $toList $ccList $bccList]

        # Send each recipient name in 'recipients'; for each the response should be "250".

        for {set i 0} {$i < [llength $recipients]} {incr i} {
            if {$error == ""} {
                set recipient [lindex $recipients $i]
                set message "RCPT To: <$recipient>\r\n"

                if {[catch {gensockPutData $smtpSocket $message [string length $message]}\
                    response] || [catch {gensockGetLine $smtpSocket} response] || \
                    ![string match "250*" $response]} {

                    set error "SMTP server does not like '$recipient': $response"
                }
            }
        }
    }

    if {$error == ""} {
        # Announce the sender and the response should be "354".

        set message "DATA\r\n"

        if {[catch {gensockPutData $smtpSocket $message [string length $message]} \
             response] || [catch {gensockGetLine $smtpSocket} response] || \
            ![string match "354*" $response]} {

            set error "SMTP not accepting message data: $response"
        }
    }

    if {$error == ""} {
        # Put the header portion of "DATA" together.

        set header ""

        # First the "Date:" field.
        append header "Date: $mailDate\n"

        # Next the "From:" field.
        append header "From: [lindex $sender 0]\n"

        # Next the "Subject:" field.
        append header "Subject: $subject\n"

        # Next the "To:" field.
        if {[llength $toList] == "1"} {
            append header "To: [lindex $toList 0]\n"
        } else {
            append header "To: $toList\n"
        }

        # Next the "Cc:" field, if it exists.
        if {[string length $ccList]} {
            if {[llength $ccList] == "1"} {
                append header "Cc: [lindex $ccList 0]\n"
            } else {
                append header "Cc: $ccList\n"
            }
        }

        # Next the "X-Mailer:" field.
        append header "X-Mailer: <Tornado Setup>\n"

        # Terminate the header with "\n"
        append header "\n"

        # Send the header.
        if {[catch {gensockPutDataBuffered $smtpSocket $header \
                      [string length $header]} response]} {

            set error "SMTP socket write error: '$response'"
        }
    }

    if {$error == ""} {
        # Put the body of the message together and send it.

        foreach line $msgContents {
            # If the line starts with a ".", make it start with *two* dots.

            if {[string index $line 0] == "."} {
                set line [format ".%s" $line]
            }

            # Substitute multiple line breaks ("\r") with single \r.
            regsub -all \r+ $line \r line

            set message "$line\n"
            if {[catch {gensockPutDataBuffered $smtpSocket $message \
                          [string length $message]} response]} {

                set error "SMTP socket write error: '$response'"
                break
            }
        }
    }

    if {$error == ""} {
        # UUEncode each attachment and send each one individually.

        foreach attachment $attachmentList {
            # UUEncode '$attachment'

            if [catch {uuencode $attachment \
                       [file tail $attachment]} tmpFilename] {
                set error $tmpFilename
                break
            }
            # Open the UUEncoded file.

            if [catch {open $tmpFilename r} tmpFile] {
                set error "unable to open temp. file $tmpfilename"
                break;
            }
            # Place a couple of blank lines before each attachment.

            if {[catch {gensockPutDataBuffered $smtpSocket \
                          "\r\n\r\n" 4} response]} {
                set error "SMTP socket write error: '$response'"
                break;
            }
            # Write the entire contents of the UUEncoded file to SMTP socket.

            set tmpFileContents [split [read $tmpFile] \n]

            foreach line $tmpFileContents {

                # If the line starts with a ".", make it start with *two* dots.

                if {[string index $line 0] == "."} {
                    set line [format ".%s" $line]
                }
                if [catch {gensockPutDataBuffered $smtpSocket "$line\n" \
                              [expr [string length $line] + 1]} response] {

                    set error "SMTP socket write error: '$response'"
                    break
                }
            }
            close $tmpFile

            file delete $tmpFilename

            gensockFlushBufferedData $smtpSocket
        }
    }

    if {$error == ""} {
        # Terminate the DATA section with a final "." surrounded by new-lines.

        set message "\r\n.\r\n"
        if {[catch {gensockPutDataBuffered $smtpSocket $message \
                      [string length $message]} response]} {

            set error "SMTP socket write error: '$response'"
        } {
            gensockFlushBufferedData $smtpSocket
        }
    }

    if {$error == ""} {
        # "Logoff" the SMTP server and response should be "250".

        set message "QUIT\r\n"

        if {[catch {gensockPutData $smtpSocket $message [string length $message]} \
             response] || [catch {gensockGetLine $smtpSocket} response] || \
            ![string match "250*" $response]} {

            set error "SMTP server error: $response"
        }
    }

    # Close away the message file handle.

    if {$msgFile != ""} {
        close $msgFile
    }

    # Close away the SMTP socket.

    if {$smtpSocket != ""} {
        gensockClose $smtpSocket
    }

    if {$error != ""} {
        error $error
    }
}

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
99精品桃花视频在线观看| 91精品国模一区二区三区| 欧美亚洲日本国产| 制服丝袜亚洲精品中文字幕| 久久久久免费观看| 亚洲777理论| 波多野结衣91| 欧美成人官网二区| 夜夜精品视频一区二区| 国产在线播放一区二区三区| 欧美三区在线观看| 亚洲色图在线播放| 精品一区中文字幕| 在线播放亚洲一区| 一区二区三区欧美| 成人av网址在线| 欧美成人官网二区| 日本成人在线看| 色哟哟在线观看一区二区三区| 日韩视频在线永久播放| 一区二区三区日本| av不卡一区二区三区| 欧美不卡一区二区三区四区| 午夜精品一区在线观看| 91女厕偷拍女厕偷拍高清| 欧美激情在线观看视频免费| 国产精品99久久久久久宅男| 日韩美女一区二区三区| 日韩精品视频网| 欧美日韩精品一区二区| 一区二区三区在线观看网站| av成人老司机| 亚洲人成人一区二区在线观看| 成人av在线播放网址| 国产精品视频yy9299一区| 国产伦精品一区二区三区免费| 日韩精品一区二区三区四区视频 | 亚洲va国产va欧美va观看| 成人免费视频视频| 日本一区二区电影| 成人激情综合网站| 国产精品久久久久久久久免费樱桃| 韩国中文字幕2020精品| 精品99一区二区| 国产原创一区二区三区| 国产三级一区二区三区| 成人网在线播放| 中文字幕在线播放不卡一区| 色综合中文字幕| 亚洲一区电影777| 欧美性感一区二区三区| 日韩影院在线观看| 精品国产青草久久久久福利| 国产高清在线观看免费不卡| 国产精品久久国产精麻豆99网站| www.66久久| 亚洲一区二区三区自拍| 在线成人av网站| 激情综合网激情| 中文字幕一区二区三区蜜月| 欧美日韩中文字幕精品| 久久福利视频一区二区| 国产精品久久久久三级| 欧美日韩国产综合一区二区| 免费在线成人网| 国产精品午夜免费| 欧洲一区二区av| 韩国精品主播一区二区在线观看 | 亚洲制服欧美中文字幕中文字幕| 欧美日本一区二区三区四区| 精品一区二区三区不卡| 中文字幕乱码一区二区免费| 91国模大尺度私拍在线视频| 男女视频一区二区| 国产精品久久三| 91精品国产乱| 不卡一二三区首页| 捆绑变态av一区二区三区| 日韩一区日韩二区| 欧美tickling挠脚心丨vk| 91丨porny丨在线| 蜜臀a∨国产成人精品| 亚洲男帅同性gay1069| 精品盗摄一区二区三区| 欧美影院精品一区| 国产成人精品影视| 视频一区中文字幕| 亚洲欧洲日产国产综合网| 精品国产91九色蝌蚪| 在线观看免费成人| 成人app在线观看| 美日韩一级片在线观看| 亚洲国产精品天堂| 国产精品久久久久久久久晋中 | 成人高清av在线| 麻豆精品视频在线观看免费 | 精品国产网站在线观看| 色一情一乱一乱一91av| 国产电影精品久久禁18| 日韩中文字幕一区二区三区| 亚洲另类色综合网站| 中文成人综合网| 久久综合五月天婷婷伊人| 欧美精品久久久久久久久老牛影院| 99久久国产免费看| 国产成都精品91一区二区三| 蜜桃av一区二区三区| 午夜视频在线观看一区| 亚洲一区免费视频| 国产精品电影院| 国产精品久久久久久妇女6080| 精品国产乱码久久久久久夜甘婷婷| 欧美人妇做爰xxxⅹ性高电影| www.色精品| 成人av在线网| caoporm超碰国产精品| 成人亚洲一区二区一| 国产成人精品亚洲午夜麻豆| 国产激情视频一区二区三区欧美| 国产在线精品一区在线观看麻豆| 极品瑜伽女神91| 国产剧情在线观看一区二区| 久久69国产一区二区蜜臀| 九九精品一区二区| 国产精品一区二区在线看| 国产精品一级二级三级| 成人一区二区视频| 91网址在线看| 在线看国产日韩| 欧美剧在线免费观看网站| 欧美日本一区二区三区四区| 日韩一区二区电影在线| 2024国产精品| 中文字幕 久热精品 视频在线| 中文字幕亚洲精品在线观看| 亚洲欧美日韩国产综合在线| 一区二区三区在线高清| 日韩在线播放一区二区| 久久99精品久久久久婷婷| 丰满放荡岳乱妇91ww| 色综合一区二区三区| 欧美裸体bbwbbwbbw| 精品国产乱子伦一区| 最新成人av在线| 亚洲二区视频在线| 国产精品一区免费在线观看| 91亚洲精品久久久蜜桃网站| 欧美日韩一区二区三区四区五区| 欧美一区二区精品久久911| 国产丝袜欧美中文另类| 亚洲国产三级在线| 国产一区二区三区免费在线观看| 99久久精品免费看| 欧美一二三区在线| 亚洲色大成网站www久久九九| 视频一区在线视频| 波多野结衣亚洲| 精品捆绑美女sm三区| 亚洲欧美韩国综合色| 日韩制服丝袜av| 本田岬高潮一区二区三区| 日韩一区二区免费在线观看| 成人免费一区二区三区视频| 免费看日韩a级影片| 91欧美一区二区| 久久午夜羞羞影院免费观看| 亚洲成人在线网站| 99国产精品久久久久| 日韩女优av电影在线观看| 亚洲综合一区二区三区| 国产福利一区二区| 欧美一区二区观看视频| 亚洲欧美激情一区二区| 国产福利电影一区二区三区| 51精品国自产在线| 综合精品久久久| 粉嫩av一区二区三区粉嫩| 欧美一区二区三区影视| 亚洲激情在线播放| jlzzjlzz国产精品久久| 日韩欧美成人一区| 亚洲成人午夜影院| 99视频一区二区| 国产日韩精品久久久| 男女性色大片免费观看一区二区 | 99久久婷婷国产综合精品电影| 日韩一区二区三区四区 | 亚洲成a人v欧美综合天堂| 粉嫩13p一区二区三区| 精品国产乱码久久久久久浪潮| 亚洲第一综合色| 欧美午夜精品免费| 亚洲尤物在线视频观看| 99re这里只有精品首页| 国产精品美女一区二区在线观看| 国产乱人伦偷精品视频免下载| 日韩精品一区二| 精品综合久久久久久8888| 日韩欧美aaaaaa| 国模一区二区三区白浆|