請問mail傳送的過程

請問我用yahoo信箱傳封信給 xxx@yahoo.com.tw

請問傳信的過程

拜託教導我!!謝囉!!

已更新項目:

不好意思可以在問一個問題嗎?

假如我寄信給 xxx@yahoo.com.tw

是透過自己的smtp寄到yahoo的主機嗎(而非對方的主機)?然後對方收信的話,是從瀏覽器連到yahoo,在把信件內容傳回來。

1 個解答

評分
  • Chen
    Lv 6
    9 年前
    最佳解答

    very simple protocol SMTP protocol see RFC 821 document, RFC is free

    1. client (user) connect email server ( 25 port) by TCP

    client rival email server

    connect

    ------------------------------->

    <------------------------------

    server greet( 220) OK

    HELLO your email server

    ---------------------------->

    send_OK ( 220)

    <-----------------------------

    MAIL FROM: your email\n

    ------------------------------>

    <----------------------------

    send_OK(250)

    RCPT TO: send to whom1

    -------------------->

    <--------------------

    send_OK(250 or 251)

    RCPT TO: send to whom2

    -------------------->

    <--------------------

    send_OK(250 or 251)

    .

    .

    no Bcc or cc

    DATA ( data mode)

    ------------------------->

    <--------------------------

    send_OK

    send MIME data

    . (leave data mode)

    ---------------------->

    <--------------------

    OK

    close socket

    2. above statement is experience of my coding.

    2012-04-07 14:36:00 補充:

    1. gerneral email server doesn't check HELLO your email server and response OK

    2. connect another email server, only It is connected and response server greet OK,

    not and error response, email server help you to send mail out, (maybe Email server uses forward ).

    2012-04-07 14:54:17 補充:

    send to 2 email for you through msa.hinet.net, HELLO email server random code

    do you receive it ? becacuse I has sucessed to send out.

還有問題?馬上發問,尋求解答。