關於SharpWebMail配置調試

來源:互聯網
上載者:User
修改webconfig檔案:
由於收信用的是Pop服務,配置pop伺服器:<server
                    name="Default POP3 Server"
                    regexp="*"
                    protocol="pop3"
                    host="pop3.163.com"
                    port="110"
                />

發信則可以使用原生smtp設定,這需要配置好smtp:<server
     name="Default SMTP Server"
     regexp="*"
     protocol="smtp"
     host="localhost"
     port="25"
    />

關於本機配置郵件伺服器的設定:
可能導致 could not access 'cdo.message' object 異常的幾種情況。
1、沒有許可權:
具體看:
http://blog.joycode.com/ghj/archive/2004/02/17/13197.aspx

2、System.Web.Mail FAQ  這裡提供了另外6種情況,我就不轉貼了,自己查
http://www.systemwebmail.com/faq/4.2.3.aspx

3、你裝了殺毒軟體,或者防火牆,
以McAfee VirusScan Enterprise 8.0 為例,在連接埠限制中,預設限制了除 amgrsrvc.exe,tomcat.exe,outlook.exe,msimn.exe,agent.exe,eudora.exe,nlnotes.exe,mozilla.exe,netscp.exe,
opera.exe,pine.exe,poco.exe,thebat.exe,thunderbird.exe,ntaskldr.exe,inetinfo.exe,nsmtp.exe,nrouter.exe,
tomcat5.exe,tomcat5w.exe,ebs.exe,FireSvc.exe,modulewrapper.exe,MSKSrvr.exe,MSKDetct.exe  這些程式外對 25 連接埠的請求。 而25連接埠是SMTP 用的。這時候就會報 未能訪問“CDO.Message”對象 對象錯誤;只要把你的程式名放到例外名單中,即可繞過這個限制。如:
 

4、你的Mail伺服器效能不太好,經常逾時,或其他錯誤,也會報:未能訪問“CDO.Message”對象 的錯誤。

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.