SendUsing配置无效。 [英] SendUsing configuration is invalid.
问题描述
使用ASP.Net和Framework 1.1.4322
文件在我的计算机上运行正常。在我的主机服务器上,我收到此消息。
SendUsing"配置值无效。
描述:在执行
当前Web请求期间发生了未处理的异常。请查看堆栈跟踪以获取更多信息
有关错误及其在代码中的起源。
异常详细信息:System.Runtime.InteropServices.COMException:
" SendUsing"配置值无效。
源错误:
第134行:''SMTP服务器'的名称或IP地址!
135行:myMail.SmtpServer =""
第136行:myMail.Send(myMessage)
第137行:
第138行:frmEmail.Visible = False
这些是声明的变量:
Dim myMessage As New MailMessage
Dim myMail As SmtpMail
Dim UserMessage As String
Using ASP.Net and Framework 1.1.4322
File works fine on my computer. On my host server, I get this message.
The "SendUsing" configuration value is invalid.
Description: An unhandled exception occurred during the execution of the
current web request. Please review the stack trace for more information
about the error and where it originated in the code.
Exception Details: System.Runtime.InteropServices.COMException: The
"SendUsing" configuration value is invalid.
Source Error:
Line 134: '' SMTP server''s name or ip address!
Line 135: myMail.SmtpServer = ""
Line 136: myMail.Send(myMessage)
Line 137:
Line 138: frmEmail.Visible = False
These are some declared variables:
Dim myMessage As New MailMessage
Dim myMail As SmtpMail
Dim UserMessage As String
推荐答案
有可下载的代码:
http://sholliday.spaces.live.com/Blog/cns!A68482B9628A842A!138.entry
来帮助你。
" dancer" < da **** @ microsoft.comwrote in message
news:%2 **************** @ TK2MSFTNGP03.phx.gbl ...
There is downloadable code here:
http://sholliday.spaces.live.com/Blog/cns!A68482B9628A842A!138.entry
to help you.
"dancer" <da****@microsoft.comwrote in message
news:%2****************@TK2MSFTNGP03.phx.gbl...
使用ASP.Net和Framework 1.1.4322
文件在我的计算机上正常工作。在我的主机服务器上,我收到此消息。
SendUsing"配置值无效。
描述:在执行
当前Web请求期间发生了未处理的异常。请查看堆栈跟踪以获取更多信息
有关错误及其在代码中的起源。
异常详细信息:System.Runtime.InteropServices.COMException:
" SendUsing"配置值无效。
源错误:
第134行:''SMTP服务器'的名称或IP地址!
第135行:myMail.SmtpServer =""
第136行:myMail.Send(myMessage)
第137行:
第138行:frmEmail.Visible = False
这些是声明的变量:
Dim myMessage As New MailMessage
将我的邮件调暗为SmtpMail
Dim UserMessage As String
Using ASP.Net and Framework 1.1.4322
File works fine on my computer. On my host server, I get this message.
The "SendUsing" configuration value is invalid.
Description: An unhandled exception occurred during the execution of the
current web request. Please review the stack trace for more information
about the error and where it originated in the code.
Exception Details: System.Runtime.InteropServices.COMException: The
"SendUsing" configuration value is invalid.
Source Error:
Line 134: '' SMTP server''s name or ip address!
Line 135: myMail.SmtpServer = ""
Line 136: myMail.Send(myMessage)
Line 137:
Line 138: frmEmail.Visible = False
These are some declared variables:
Dim myMessage As New MailMessage
Dim myMail As SmtpMail
Dim UserMessage As String
在6月11日晚上8点48分,舞者 < dan ... @ microsoft.comwrote:
On Jun 11, 8:48 pm, "dancer" <dan...@microsoft.comwrote:
使用ASP.Net和Framework 1.1.4322
文件在我的计算机上运行正常。在我的主机服务器上,我收到此消息。
SendUsing"配置值无效。
描述:在执行
当前Web请求期间发生了未处理的异常。请查看堆栈跟踪以获取更多信息
有关错误及其在代码中的起源。
异常详细信息:System.Runtime.InteropServices.COMException:
" SendUsing"配置值无效。
源错误:
第134行:''SMTP服务器'的名称或IP地址!
第135行:myMail.SmtpServer =""
第136行:myMail.Send(myMessage)
第137行:
第138行:frmEmail.Visible = False
这些是声明的变量:
Dim myMessage As New MailMessage
Dim myMail作为SmtpMail
Dim UserMessage As String
Using ASP.Net and Framework 1.1.4322
File works fine on my computer. On my host server, I get this message.
The "SendUsing" configuration value is invalid.
Description: An unhandled exception occurred during the execution of the
current web request. Please review the stack trace for more information
about the error and where it originated in the code.
Exception Details: System.Runtime.InteropServices.COMException: The
"SendUsing" configuration value is invalid.
Source Error:
Line 134: '' SMTP server''s name or ip address!
Line 135: myMail.SmtpServer = ""
Line 136: myMail.Send(myMessage)
Line 137:
Line 138: frmEmail.Visible = False
These are some declared variables:
Dim myMessage As New MailMessage
Dim myMail As SmtpMail
Dim UserMessage As String
查看托管服务提供的支持文档,或者
联系服务台。该错误意味着它要求您指定SMTP服务器的
。通常它是邮件服务器的IP地址。
您也可以尝试使用localhost,如果启用SMTP服务
,它可能会起作用您网站所在的同一服务器。
myMail.SmtpServer =" localhost"
Check the support documentation that hosting service provides, or
contact a servicedesk. The error means that it requires you to specify
the SMTP Server. Usually it is an IP address of the mail server.
You can also try to use localhost, maybe it will work if SMTP service
is enabled on the same server where your site is located.
myMail.SmtpServer = "localhost"
我收到了来自我的主机的smtp服务器地址。我做了更改,然后我收到了这条消息:
服务器拒绝了一个或多个收件人地址。服务器响应
为:550< xx ************ @ xxxxxx.com不是有效邮箱
我有x'' d我的地址是为了安全。
我们在公司内部托管我们自己的电子邮件地址 - 而不是我们的主机
服务器。但是因为它说*收件人*地址我不明白为什么它
说不是有效的邮箱
这是我的代码:
------------------------------------------- -------------
myMessage.From =" ssssss.ssssssst @sssssssss..com"
'' myMessage.To = strEmail
MyMessage.To =" sssssss.ssssssst @sssssssss..com"
myMessage.Subject ="意外表格(HTML)
------------------------------- --------------------------------------------
来自和来自的电子邮件是一样的。
你能帮我吗?
" Alexey Smirnov" < al ************ @ gmail.comwrote in message
news:11 ****************** ***@h2g2000hsg.googlegrou ps.com ...
I got the smtp server address from my host. I made the change, then I
received this message:
The server rejected one or more recipient addresses. The server response
was: 550 <xx************@xxxxxx.comis not a valid mailbox
I have x''d out my address for security.
We host our own e-mail addresses inside the company - not on our hosting
server. But since it says *recipient* address I don''t understand why it
says "not a valid mailbox"
Here is my code:
--------------------------------------------------------
myMessage.From = "ssssss.ssssssst@ssssssss..com"
'' myMessage.To = strEmail
MyMessage.To = "sssssss.ssssssst@ssssssss..com"
myMessage.Subject = "Accident Form (HTML)"
---------------------------------------------------------------------------
The from and to emails are the same.
Can you help me?
"Alexey Smirnov" <al************@gmail.comwrote in message
news:11*********************@h2g2000hsg.googlegrou ps.com...
6月11日晚上8:48,舞者 < dan ... @ microsoft.comwrote:
On Jun 11, 8:48 pm, "dancer" <dan...@microsoft.comwrote:
>使用ASP.Net和Framework 1.1.4322
文件在我的计算机上正常工作。在我的主机服务器上,我收到此消息。
SendUsing"配置值无效。
描述:执行
当前Web请求期间发生未处理的异常。请查看堆栈跟踪以获取更多信息
有关错误及其在代码中的起源。
异常详细信息:System.Runtime.InteropServices.COMException:
SendUsing ;配置值无效。
来源错误:
第134行:''SMTP服务器'的名称或IP地址!
第135行:myMail.SmtpServer = "
第136行:myMail.Send(myMessage)
第137行:
第138行:frmEmail.Visible = False
这些是声明的变量:
Dim myMessage As New MailMessage
Dim myMail As SmtpMail
Dim UserMessage As String
>Using ASP.Net and Framework 1.1.4322
File works fine on my computer. On my host server, I get this message.
The "SendUsing" configuration value is invalid.
Description: An unhandled exception occurred during the execution of the
current web request. Please review the stack trace for more information
about the error and where it originated in the code.
Exception Details: System.Runtime.InteropServices.COMException: The
"SendUsing" configuration value is invalid.
Source Error:
Line 134: '' SMTP server''s name or ip address!
Line 135: myMail.SmtpServer = ""
Line 136: myMail.Send(myMessage)
Line 137:
Line 138: frmEmail.Visible = False
These are some declared variables:
Dim myMessage As New MailMessage
Dim myMail As SmtpMail
Dim UserMessage As String
Check托管服务提供的支持文档,或者
联系服务台。该错误意味着它要求您指定SMTP服务器的
。通常它是邮件服务器的IP地址。
您也可以尝试使用localhost,如果启用SMTP服务
,它可能会起作用您网站所在的同一服务器。
myMail.SmtpServer =" localhost"
Check the support documentation that hosting service provides, or
contact a servicedesk. The error means that it requires you to specify
the SMTP Server. Usually it is an IP address of the mail server.
You can also try to use localhost, maybe it will work if SMTP service
is enabled on the same server where your site is located.
myMail.SmtpServer = "localhost"
这篇关于SendUsing配置无效。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!