关于System.web.mail的几个问题 [英] Couple of questions on System.web.mail

查看:53
本文介绍了关于System.web.mail的几个问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用VB.NET开发的

应用程序中的System.web.mail组件


1)使用System发送电子邮件。 web.mail工作/运行

仅适用于WinNT,2000和XP操作系统。

2)使用此组件发送电子邮件需要IIS

安装在发送电子邮件的机器上

发送了什么?

我正在使用这个组件。当我提供邮件服务器的

IP地址时,它工作正常。但是,当我提供邮件服务器的完整

主机名时,它会给我一个错误。


任何人都可以帮我这个吗?


提前致谢


Ricky

解决方案

什么错误你得到了吗?

如果你使用smtp服务器的服务器名称,运行你的
代码的机器必须能够解析该名称(它是TCP / IP问题)。

此外,您在运行代码的计算机上不需要IIS。然而,SMTP服务器
可能是运行SMTP服务的IIS服务器。


Telmo Sampaio


"瑞奇" <一个******* @ discussions.microsoft.com>在消息中写道

news:21 **************************** @ phx.gbl ... < blockquote class =post_quotes>我正在使用VB.NET开发的
应用程序中的System.web.mail组件

1)使用System.web.mail发送电子邮件是否正常工作/运行
仅适用于WinNT,2000和XP操作系统。
2)使用此组件发送电子邮件是否需要在发送电子邮件的机器上安装IIS?

我正在使用这个组件。当我提供邮件服务器的IP地址时,它工作正常。但是当我给出邮件服务器的完整主机名时,它会给我一个错误。

任何人都可以帮我这个吗?

提前致谢

Ricky



我收到以下错误:


类型'的未处理异常'System.Web.HttpException''

发生在system.web.dll中


附加信息:无法访问''CDO.Message''

对象。

-----原始消息-----
你得到了什么错误?
如果您使用smtp服务器的服务器名称,运行您的代码的
机器必须能够解析该名称(这是一个TCP / IP
问题)。另外,您不需要IIS机器运行
代码。但是,SMTP服务器可能是运行SMTP服务的IIS服务器。

Telmo Sampaio

Ricky <一个******* @ discussions.microsoft.com>写在
messagenews:21 **************************** @ phx.gbl ...

我正在使用VB.NET开发的
应用程序中的System.web.mail组件

1)使用System.web.mail发送电子邮件工作/运行仅适用于WinNT,2000和XP操作系统。
2)使用此组件发送电子邮件是否需要在发送电子邮件的机器上安装IIS?

我正在使用这个组件。当我给
邮件服务器的IP地址时,它工作正常。但是当我给出邮件服务器的完整主机名时,它会给我一个错误。

任何人都可以帮我这个吗?

提前致谢

Ricky





*" Ricky" <一个******* @ discussions.microsoft.com> scripsit:

我正在使用VB.NET开发的
应用程序中的System.web.mail组件

1)使用System.web发送电子邮件.mail work / run
仅适用于WinNT,2000和XP操作系统。


是。

2)使用此组件发送电子邮件需要在电子邮件所在的机器上安装IIS
发送?




需要安装SMTP服务和CDO,AFAIK。


有关此网站空间的更多信息,请参阅看看

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


-

Herfried K. Wagner [MVP]

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


I am using the System.web.mail component in my
application being developed in VB.NET

1) Does sending email using System.web.mail work/run
only on WinNT,2000 and XP Operating systems.
2) Does sending email using this component need IIS
installed on the machines from where the email is being
sent?
I am using this component. It works fine when I give the
IP address of the mail server. But when I give the full
hostname of the mail server it gives me an error.

Can anyone help me with this??

Thanks in advance

Ricky

解决方案

What error did you get?
If you are using a server name for the smtp server the machine running your
code has to be able to resolve that name (it is a TCP/IP issue).
Also, you do not need IIS on the machine running your code. The SMTP server,
however, may be an IIS server running the SMTP service.

Telmo Sampaio

"Ricky" <an*******@discussions.microsoft.com> wrote in message
news:21****************************@phx.gbl...

I am using the System.web.mail component in my
application being developed in VB.NET

1) Does sending email using System.web.mail work/run
only on WinNT,2000 and XP Operating systems.
2) Does sending email using this component need IIS
installed on the machines from where the email is being
sent?
I am using this component. It works fine when I give the
IP address of the mail server. But when I give the full
hostname of the mail server it gives me an error.

Can anyone help me with this??

Thanks in advance

Ricky



I got the following error:

An unhandled exception of type ''System.Web.HttpException''
occurred in system.web.dll

Additional information: Could not access ''CDO.Message''
object.

-----Original Message-----
What error did you get?
If you are using a server name for the smtp server the machine running yourcode has to be able to resolve that name (it is a TCP/IP issue).Also, you do not need IIS on the machine running your code. The SMTP server,however, may be an IIS server running the SMTP service.

Telmo Sampaio

"Ricky" <an*******@discussions.microsoft.com> wrote in messagenews:21****************************@phx.gbl...

I am using the System.web.mail component in my
application being developed in VB.NET

1) Does sending email using System.web.mail work/run
only on WinNT,2000 and XP Operating systems.
2) Does sending email using this component need IIS
installed on the machines from where the email is being
sent?
I am using this component. It works fine when I give the IP address of the mail server. But when I give the full
hostname of the mail server it gives me an error.

Can anyone help me with this??

Thanks in advance

Ricky


.



* "Ricky" <an*******@discussions.microsoft.com> scripsit:

I am using the System.web.mail component in my
application being developed in VB.NET

1) Does sending email using System.web.mail work/run
only on WinNT,2000 and XP Operating systems.
Yes.
2) Does sending email using this component need IIS
installed on the machines from where the email is being
sent?



The SMTP service and CDO need to be installed, AFAIK.

For more information on this webspace, take a look at
<URL:http://www.systemwebmail.net/>.

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


这篇关于关于System.web.mail的几个问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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