473,386 Members | 1,804 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

SendUsing configuration is invalid.

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
10 4886

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
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
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
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
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
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
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
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
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
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Brian Morris | last post by:
I'm new to .NET and just trying a few things out, like emailing. I created a form in Visual Studio .Net to input some information for generating an email and I'm getting the following error when it...
0
by: FabFreddy | last post by:
Hi, I get an "SendUsing" error with the code below. It appears when I send the email! Can anybody tell me what the problem is? Thx Dim mail As New MailMessage Mail.To = info@<domaintosent>
2
by: Brent | last post by:
Hi, I have a C# asp.net app that sent mail fine on server 2000 or win 2000, but now I moved it to our new 2003 box, and it's giving me "The 'SendUsing' configuration is invalid" This is the code...
0
by: chamling | last post by:
Hi, I got Error "The "SendUsing" configuration value is invalid." while using following code. MailMessage sendinfo= new MailMessage(); sendinfo.BodyFormat=MailFormat.Html;...
1
by: Abel Martinez | last post by:
Hello. I'm looking for an example of how to do this in C#. Particulary the CDO.Configuration stuff. I'm currently using System.Web.Mail.MailMessage and System.Web.Mail.SmtpMail to send messaged,...
5
by: fm | last post by:
We are documenting and configuring our email solution. Our applications will be created with ASP.NET running on Windows 2003 servers using Framework 1.1 To minimize the administrative effort...
5
by: lds | last post by:
I am getting the following error: The "SendUsing" configuration value is invalid. Description: An unhandled exception occurred during the execution of the current web request. Please review the...
0
by: craigwfl | last post by:
This is really a lame error. I've spent two days scouring the internet for a proper solution to my problem. My issue is that I have an ASP.NET website using a VB.NET COM object to send emails (code...
1
by: samarthkumar84 | last post by:
Hi I had used following code for sending e-mail but facing this problem. I want to send this e-mail in ASP.NET using VB.NET code. I am attaching both code an output. CODE Imports...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.