->居然只能用21cn向我的21cn发邮件,向别的信箱发就不行。
  你是通过21CN的SMTP服务器发邮件?其他邮箱也能收得到啊~~即使其他域名的邮箱收不到,这只能说明21CN的SMTP服务有问题,不关你事啊。->发的附件在信箱中看不到图标。
  这话什么意思?你是通过WEB的方式看邮件还是其他什么的?至于有乱码或附件不感觉,你的邮件是怎样生成的?自己根据SMTP协议编写的还是用控件?

解决方案 »

  1.   

    1:我的意思是在我的程序中,smtp服务器用21cn的,发邮件的时候,向我的21cn信箱发邮件就成功,(至于向别人的21cn发信件成不成功我还没有试过)但向别人的163信箱发邮件就不成功。smtp服务器用yahoo的则无论发哪个信箱都不成功。
    2:在我用21cn的smtp服务器向我的21cn信箱发附件的时候,用web方式看不到附件的图标,但从邮件的大小上看,附件是发过去了。而当我用foxmail接收这封邮件时,可以看到附件的图标,并且可以下载,但正文看不到。而用outlook接收这封邮件时,正文后面总是有一些乱码,至于附件,居然作为正文的一部分显示了,乱码一片。
    3:我的邮件是根据smtp协议编写的。在vb中好象有个winsock控件可以写邮件程序,但c#中我就不知道。
    4:顺便问个问题,怎么知道一个SMTP服务器需要登陆验证,并且还对MAIL From作了验证(比如263),如果和登陆用的用户名不符也不能发信。
      

  2.   

    To vagromkiller(流浪杀手),
    Undermentioned is my reply.1) Most of the SMTP don't allow relay. This is why uou cannot use 21cn and yahoo's SMTP.2) This is probably the wrong MIME format in your mail. Some of web mail server cannot display HTML based email even the your mail is fully MIME compatiable.3) You may use TcpClient and NetworkStream to sedn your email under .NET4) You can have this information from the service provider. However, you should still be able to know it base on the reply message from the SMTP server.Wish above answer your questions.
      

  3.   

    这是我向yahoo发信时返回的日志。
    220 21cn.com SMTP Server of AIMC 2.9.5.6; Sat, 12 Apr 2003 11:35:14 +0800
    EHLO pop.21cn.com
    250-21cn.com, pop.21cn.com<127.0.0.1> hello
    250-EXPN
    250-HELP
    250-8BITMIME
    250 XTMD
    AUTH LOGIN
    334 VXNlcm5hbWU6
    c2Vhc3lzdQ==
    334 UGFzc3dvcmQ6
    MTk4MjM2
    235 OK Authenticated
    MAIL FROM:<[email protected]>
    250 <[email protected]>, sender ok.
    RCPT TO:<[email protected]>
    553 Relay restriction.这是我向21cn发信时的日志
    220 21cn.com SMTP Server of AIMC 2.9.5.2 (DELAYED).
    EHLO pop.21cn.com
    250-21cn.com, helo (DELAYED)
    250-EXPN
    250-HELP
    250-8BITMIME
    250 XTMD
    AUTH LOGIN
    334 VXNlcm5hbWU6
    c2Vhc3lzdQ==
    334 UGFzc3dvcmQ6
    MTk4MjM2
    235 OK Authenticated
    MAIL FROM:<[email protected]>
    250 <[email protected]>, sender ok.
    RCPT TO:<[email protected]>
    250 <seasysu>, Local recipient ok.
    DATA
    354 Start mail input; end with <CRLF>.<CRLF>
    DATA
    Subject:=?GB2312?B?v7S/tA==?=
    MIME-Version: 1.0
    Content-Type: multipart/mixed;
       boundary="----=_NextPart_000_00D6_01C29593.AAB31770"
    ------=_NextPart_000_00D6_01C29593.AAB31770
    Content-Type: text/plain;
       charset="gb2312"
    Content-Transfer-Encoding: base64
    1eLKx8rHs8m5prXE
    ------=_NextPart_000_00D6_01C29593.AAB31770--
    .
    250 Requested mail action okay, completed.  Message-ID=<[email protected]>
    QUIT
    221 21cn.com closing connection.
      

  4.   

    It looks like you are using 21.com's SMTP server to send email to both 21.com and yahoo.com.cn. May I have the smtp server you are using in oder to have a test here.
      

  5.   

    to laochen(天行者):
    现在我的程序可以用21cn,263向别的信箱发信件了。但smtp用smtp.mail.yahoo的时候返回534,发信不成功。这个问题还没有解决。但发到yahoo,163的时候很正常。
    2:在我用21cn的smtp服务器向我的21cn信箱发附件的时候,用web方式看不到附件的图标,但从邮件的大小上看,附件是发过去了。而当我用foxmail接收这封邮件时,可以看到附件的图标,并且可以下载,但正文看不到。而用outlook接收这封邮件时,正文后面总是有一些乱码,至于附件,居然作为正文的一部分显示了,乱码一片。
      

  6.   

    1) I just tried smtp.mail.yahoo.com, it request for authentification, I don't have the username & password, so cannot test further. Reply 534 is not defined in RFC2821, it may due to mail spam.2) I strongly believe it is due to wrong MIME format.Please send yourself a test email using Outlook Express, and compare what is the differnce between yours and OE. I believe you are not far away to your goal, so keep on doing........ Good luck.