473,378 Members | 1,360 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,378 software developers and data experts.

SendUsing Configuration is Invalid

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 below). This
sporadically works to send emails, but mostly gets the error mentioned.
Once an email does go out then the server sends emails fine until IIS
is reset.

I found this "SendUsing Configuration is Invalid" error attempting to
be addressed multiple times. The main solution is to make sure you are
assigning a server name to the SMTPMail.SMTPServer variable. This is
not the issue in my case. I have always assigned the Exchange server
via web.config and just recently added the three lines for oMsg.Fields
but that did not solve the problem either.

The only thing that addressed my issue for this is to install SMTP on
the web server. This makes no sense whatsoever! Emails would sometimes
go fine without the Fields lines and just an Exchange server. But once
SMTP is installed for IIS then it seems to allow all emails to go
through consistenly.

oMsg = New MailMessage
oMsg.From = MailFrom
oMsg.To = MailTo
oMsg.Subject = Subject
oMsg.BodyFormat = MailFormat.Html
oMsg.Body = Body
oMsg.Cc = strCC

oMsg.Fields("http://schemas.microsoft.com/cdo/configuration/smtpserverport")
= intMailServerPort

oMsg.Fields("http://schemas.microsoft.com/cdo/configuration/smtpserver")
= strMailServerName

oMsg.Fields("http://schemas.microsoft.com/cdo/configuration/sendusing")
= 2

SmtpMail.SmtpServer = strMailServerName
If (MailTo.Trim.Length > 0) Then SmtpMail.Send(oMsg)

For the moment, I think my situation is resolved in a less than
desirable fashion. I would love it if someone could tell me what I did
wrong or how to better resolve this issue.

Thanks.
Craig

May 23 '06 #1
0 1608

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;...
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...
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...
10
by: dancer | last post by:
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...
3
by: =?Utf-8?B?T2xpdmllciBNQVRST1Q=?= | last post by:
I'm trying to run an ASP.NET 2.0 web site on Windows Server 2008 RC1. I encounter a server error : HTTP 500.19 - Configuration data is invalid IIS7 claims that the <appSettingssection in web.config...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
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...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...

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.