尽管,我不知道你的具体的情况,
但,还是建议你线熟悉 SMTP 协议。

解决方案 »

  1.   

    Hi. This is the James mail server at ok.(ok我的计算机名)
    I'm afraid I wasn't able to deliver your message to the following addresses.
    This is a permanent error; I've given up. Sorry it didn't work out.  Below
    I include the list of recipients and the reason why I was unable to deliver
    your [email protected](这是我要发送的邮箱)
    550 CoremailSys:Your message was blocked by NetEase AntiSpam+...(aoDo6AUWlEIkDZwC.1.C.30929)The original message is attached.
    这是什么问题。
    大家有没有完整的向外网发邮件的代码,可否发给我研究一下(包括config.xml)
    谢了。
      

  2.   

    查看你的 <dnsserver>的配置,写上你的dns服务器,以下是我用的几个
       <dnsserver>
          <servers>
             <!--Enter ip address of your DNS server, one IP address per server -->
             <!-- element. -->

     <server>202.106.45.151</server>
         <server>202.106.46.151</server>
            <server>202.96.0.133</server>
      <server>202.96.199.133</server>
      <server>202.97.16.195</server>
      <server>202.106.0.20</server>
      <server>202.106.148.1</server>
             <server>202.106.196.115</server>
      <server>202.106.196.152</server>

    <!--
           <server>202.106.169.100</server>
       <server>218.30.103.50</server>
       <server>202.106.196.152</server>
       <server>202.106.196.115</server>
       -->
          </servers>
          <!-- Change autodiscover to false if you would like to turn off autodiscovery -->
          <!-- and set the DNS servers manually in the <servers> section -->
          <autodiscover>false</autodiscover>
          <authoritative>false</authoritative>
       </dnsserver>文档请参见http://www.cn-java.com/opensource/index.php?page=readsource/James.php
    商业用途不推荐使用james,斜率不高,而且发信时经常队列阻塞
    推荐使用ccourier-imap和postfix,支持百万级用户