我收到此錯誤:SQL Server 2005中xp_sendmail的錯誤
xp_sendmail: Either there is no default mail client or the current mail client cannot fulfill the messaging request. Please run Microsoft Outlook and set it as the default mail client.
我能做些什麼?
我收到此錯誤:SQL Server 2005中xp_sendmail的錯誤
xp_sendmail: Either there is no default mail client or the current mail client cannot fulfill the messaging request. Please run Microsoft Outlook and set it as the default mail client.
我能做些什麼?
如果您正在運行SQL Server 2005,請改爲使用sp_send_dbmail。 xp_sendmail的是SQL Server過時的2005 對於sp_send_dbmail,到這裏看看:http://msdn.microsoft.com/en-us/library/ms190307%28v=SQL.90%29.aspx
更多關於數據庫郵件,看這裏: http://msdn.microsoft.com/en-us/library/ms175887%28v=SQL.90%29.aspx
的一點是,xp_sendmail的可能在SQL的未來版本中刪除服務器。
xp_sendmail
函數需要在SQL Server計算機上安裝Outlook。當您發送電子郵件時,它將在服務器上啓動Outlook,並使用COM指示它發送郵件。像所有Office COM接口一樣,它們有時在實驗室環境中工作。但是在生產過程中,它會保證在最不幸的時候發生故障或崩潰,使服務器處於永久的狀態。有關更多SQL Mail問題,請參閱此KB article。
嘗試使用xp_smtp_sendmail
或查看此KB article其他替代方法。
謝謝。我已經解決了使用sp_send_dbmail – esquare 2011-02-26 10:23:54