cdo。消息失败 [英] cdo .message failure

查看:123
本文介绍了cdo。消息失败的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

好的 - 我很亲密。我在服务器上运行一个控制台应用程序,它失败了

,cdo .message失败。这是一个简单的电子邮件例程,可以在我的开发电脑上运行。你知道这会导致什么吗?


感谢您的帮助。


Bernie Yaeger


允许127.0.0.1中继。


我会检查以确保在IIS下默认SMTP虚拟

Server-> Properites-> Access-> Relay你已经将127.0.0.1添加到了

列表中。


HTH,

格雷格


格雷格


" Bernie Yaeger" <是***** @ cherwellinc.com>在消息中写道

news:ux ************* @ TK2MSFTNGP10.phx.gbl ...

好的 - 我是很接近。我正在服务器上运行一个控制台应用程序,它失败了,因为cdo .message失败了。这是一个简单的电子邮件例程,在我的开发电脑上工作正常
。你知道是什么原因造成的吗?

感谢您的帮助。

Bernie Yaeger



CDOSYS(我假设你在那里使用的那个)应该安装在W2K

及以上。你是通过COM使用它吗?为什么不使用System.Web.Mail

呢?它包装CDOSYS如果可用,否则它将使用CDONTS。

-

Klaus H. Probst,MVP
http://www.vbbox.com/

" Bernie Yaeger" <是***** @ cherwellinc.com>在消息中写道

news:ux ************* @ TK2MSFTNGP10.phx.gbl ...

好的 - 我是很接近。我正在服务器上运行一个控制台应用程序,它失败了,因为cdo .message失败了。这是一个简单的电子邮件例程,在我的开发电脑上工作正常
。你知道是什么原因造成的吗?

感谢您的帮助。

Bernie Yaeger



*" Bernie Yaeger" <是***** @ cherwellinc.com> scripsit:

好的 - 我非常接近。我正在服务器上运行一个控制台应用程序,它失败了,因为cdo .message失败了。这是一个简单的电子邮件例程,可以在我的开发电脑上运行正常。你知道这会导致什么吗?




我建议你看看这个很棒的资源:


< ;网址:http://www.systemwebmail.net/>


-

Herfried K. Wagner [MVP]

< URL:http://dotnet.mvps.org/>


OK - I''m very close. I''m running a console app on a server and it fails
with cdo .message failure. It''s a simple email routine which works fine on
my development pc. Do you have any idea what would cause this?

Thanks for any help.

Bernie Yaeger

解决方案

If your SmtpMail.SmtpServer = "localhost" you need make sure your sever
allows 127.0.0.1 to relay.

I would check to make sure in IIS under Default SMTP Virtual
Server->Properites->Access->Relay that you have added 127.0.0.1 to that
list.

HTH,
Greg

Greg

"Bernie Yaeger" <be*****@cherwellinc.com> wrote in message
news:ux*************@TK2MSFTNGP10.phx.gbl...

OK - I''m very close. I''m running a console app on a server and it fails
with cdo .message failure. It''s a simple email routine which works fine on my development pc. Do you have any idea what would cause this?

Thanks for any help.

Bernie Yaeger



CDOSYS (I assume that''s what you''re using there) should be installed on W2K
and above. Are you using it through COM? Why not use System.Web.Mail
instead? It wraps CDOSYS if it is available, otherwise it will use CDONTS.
--
Klaus H. Probst, MVP
http://www.vbbox.com/
"Bernie Yaeger" <be*****@cherwellinc.com> wrote in message
news:ux*************@TK2MSFTNGP10.phx.gbl...

OK - I''m very close. I''m running a console app on a server and it fails
with cdo .message failure. It''s a simple email routine which works fine on my development pc. Do you have any idea what would cause this?

Thanks for any help.

Bernie Yaeger



* "Bernie Yaeger" <be*****@cherwellinc.com> scripsit:

OK - I''m very close. I''m running a console app on a server and it fails
with cdo .message failure. It''s a simple email routine which works fine on
my development pc. Do you have any idea what would cause this?



I suggest to have a look at this great resource:

<URL:http://www.systemwebmail.net/>

--
Herfried K. Wagner [MVP]
<URL:http://dotnet.mvps.org/>


这篇关于cdo。消息失败的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆