By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
428,685 Members | 1,243 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 428,685 IT Pros & Developers. It's quick & easy.

SendUsing configuration is invalid.

P: n/a
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
Jun 11 '07 #1
Share this Question
Share on Google+
10 Replies


P: n/a

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...
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


Jun 11 '07 #2

P: n/a
On Jun 11, 8:48 pm, "dancer" <dan...@microsoft.comwrote:
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 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"

Jun 11 '07 #3

P: n/a
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...
On Jun 11, 8:48 pm, "dancer" <dan...@microsoft.comwrote:
>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 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"

Jun 13 '07 #4

P: n/a
It is the TO address that is the problem, for I changed that one, and the
error message pointed it out. Now why would the TO address be a problem?
That should not have anything to do with a mail box on the host server,
should it?
"dancer" <da****@microsoft.comwrote in message
news:e0**************@TK2MSFTNGP03.phx.gbl...
>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...
>On Jun 11, 8:48 pm, "dancer" <dan...@microsoft.comwrote:
>>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 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"


Jun 13 '07 #5

P: n/a
On Jun 13, 5:53 pm, "dancer" <dan...@microsoft.comwrote:
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 <xxxxxxx.xxx...@xxxxxx.comis not a valid mailbox
I have x'd out my address for security.
"sssssss.ssssssst@ssssssss..com"

two dots at the end?

Jun 13 '07 #6

P: n/a
No - I made that error when I changed the real address to x's and s's on
this message

"Alexey Smirnov" <al************@gmail.comwrote in message
news:11**********************@x35g2000prf.googlegr oups.com...
On Jun 13, 5:53 pm, "dancer" <dan...@microsoft.comwrote:
>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 <xxxxxxx.xxx...@xxxxxx.comis not a valid mailbox
I have x'd out my address for security.

"sssssss.ssssssst@ssssssss..com"

two dots at the end?

Jun 13 '07 #7

P: n/a
On Jun 13, 10:40 pm, "dancer" <dan...@microsoft.comwrote:
No - I made that error when I changed the real address to x's and s's on
this message
It seems that you have no rights to send an email. Either you have to
authenticate using a username and a password, or you need to have the
persmissions to relay through the server.

http://www.systemnetmail.com/faq/1.4.aspx

Jun 13 '07 #8

P: n/a
On our website there are pages (maintained in Front Page) that communicate
with us through e-mail.
(No reference is made of SMTP on these pages.)

Why would we have permissions to relay through the server on those pages,
but not when I'm using Asp.net?

Thanks

"Alexey Smirnov" <al************@gmail.comwrote in message
news:11**********************@z28g2000prd.googlegr oups.com...
On Jun 13, 10:40 pm, "dancer" <dan...@microsoft.comwrote:
>No - I made that error when I changed the real address to x's and s's on
this message

It seems that you have no rights to send an email. Either you have to
authenticate using a username and a password, or you need to have the
persmissions to relay through the server.

http://www.systemnetmail.com/faq/1.4.aspx

Jun 14 '07 #9

P: n/a
On Jun 14, 7:46 pm, "dancer" <dan...@microsoft.comwrote:
On our website there are pages (maintained in Front Page) that communicate
with us through e-mail.
(No reference is made of SMTP on these pages.)
Does it mean you have a link, a sort of <a
href=mailto:xx*@xxx.com>Send me an email</which is not required a
SMTP?

Jun 14 '07 #10

P: n/a
Maybe so ..... Here is the code: If so, why isn't SMTP required? And why
can't I get by without SMTP on an ASP.net application?
<form method="POST" name="Contact Request" action="--WEBBOT-SELF--"
onSubmit="location.href='_derived/nortbots.htm';return false;"
webbot-onSubmit>
<!--webbot bot="SaveResults" u-file="_private/contact_req.txt"
s-format="TEXT/PRE" s-label-fields="TRUE" b-reverse-chronology="FALSE"
s-email-format="TEXT/PRE" s-email-address="xx********@xxxxxxxx.com"
b-email-label-fields="TRUE" b-email-replyto-from-field="TRUE"
s-email-replyto="Email" b-email-subject-from-field="FALSE"
s-email-subject="Contact Request" s-date-format="%m/%d/%Y"
s-time-format="%I:%M %p" s-builtin-fields="Date Time" s-form-fields="Reason
Source Other FirstName LastName Address1 Address2 City State Zip Phone Fax
Email Comments " startspan --><input TYPE="hidden" NAME="VTI-GROUP"
VALUE="0"><!--webbot bot="SaveResults" endspan i-checksum="43374" -->
<p><FONT face="Arial, Helvetica, sans-serif" size=2><B>Have a
Wheeler's representative contact me
regarding:</B></FONT</p>
"Alexey Smirnov" <al************@gmail.comwrote in message
news:11**********************@n15g2000prd.googlegr oups.com...
On Jun 14, 7:46 pm, "dancer" <dan...@microsoft.comwrote:
>On our website there are pages (maintained in Front Page) that
communicate
with us through e-mail.
(No reference is made of SMTP on these pages.)

Does it mean you have a link, a sort of <a
href=mailto:xx*@xxx.com>Send me an email</which is not required a
SMTP?

Jun 14 '07 #11

This discussion thread is closed

Replies have been disabled for this discussion.