Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / ASP.NET / General / June 2007

Tip: Looking for answers? Try searching our database.

SendUsing configuration is invalid.

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
dancer - 11 Jun 2007 19:48 GMT
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
sloan - 11 Jun 2007 20:09 GMT
There is downloadable code here:
http://sholliday.spaces.live.com/Blog/cns!A68482B9628A842A!138.entry

to help you.

> Using ASP.Net and Framework 1.1.4322
> File works fine on my computer.  On my host server, I get this message.
[quoted text clipped - 20 lines]
>
> Dim UserMessage As String
Alexey Smirnov - 11 Jun 2007 22:41 GMT
> Using ASP.Net and Framework 1.1.4322
> File works fine on my computer.  On my host server, I get this message.
[quoted text clipped - 20 lines]
>
> 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"
dancer - 13 Jun 2007 16:53 GMT
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.xxxxxx@xxxxxx.com> is 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?

>> Using ASP.Net and Framework 1.1.4322
>> File works fine on my computer.  On my host server, I get this message.
[quoted text clipped - 29 lines]
>
> myMail.SmtpServer = "localhost"
dancer - 13 Jun 2007 18:26 GMT
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?

>I got the smtp server address from my host. I made the change, then I
>received this message:
[quoted text clipped - 54 lines]
>>
>> myMail.SmtpServer = "localhost"
Alexey Smirnov - 13 Jun 2007 21:31 GMT
> 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.com> is not a valid mailbox
> I have x'd out my address for security.

"sssssss.ssssssst@ssssssss..com"

two dots at the end?
dancer - 13 Jun 2007 21:40 GMT
No - I made that error when I changed the real address to x's and s's on
this message

>> I got the smtp server address from my host. I made the change, then I
>> received this message:
[quoted text clipped - 5 lines]
>
> two dots at the end?
Alexey Smirnov - 13 Jun 2007 23:13 GMT
> 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
dancer - 14 Jun 2007 18:46 GMT
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

>> No - I made that error when I changed the real address to x's and s's on
>> this message
[quoted text clipped - 4 lines]
>
> http://www.systemnetmail.com/faq/1.4.aspx
Alexey Smirnov - 14 Jun 2007 22:15 GMT
> 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:xxx@xxx.com>Send me an email</> which is not required a
SMTP?
dancer - 14 Jun 2007 23:12 GMT
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="xxxxxxxxxx@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>

>> On our website there are pages (maintained in Front Page) that
>> communicate
[quoted text clipped - 4 lines]
> href=mailto:xxx@xxx.com>Send me an email</> which is not required a
> SMTP?

Rate this thread:







Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.