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 now...
MailMessage mail = new MailMessage();
mail.From = from;
mail.To = email;
mail.Subject = subject;
mail.Body = body;
mail.BodyFormat = MailFormat.Html ;
if(email!="")
SmtpMail.Send(m ail);
Please help.
Thanks,
Brent 2 4596
Brent,
You need to specify which server should send the email
SmtpMail.SmtpSe rver = "[your mail server here]"
Sincerely,
--
S. Justin Gengo, MCP
Web Developer
Free code library at: www.aboutfortunate.com
"Out of chaos comes order."
Nietzche
"Brent" <Br***@Brent.co m> wrote in message
news:vj******** ****@corp.super news.com... 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 now... MailMessage mail = new MailMessage(); mail.From = from;
mail.To = email;
mail.Subject = subject;
mail.Body = body;
mail.BodyFormat = MailFormat.Html ;
if(email!="")
SmtpMail.Send(m ail); Please help.
Thanks,
Brent
Ya, I just found that out before I checked this. Thanks anyway. Interesting
that it was not required on server 2000/win2000.
"S. Justin Gengo" <sj*****@aboutf ortunate.com> wrote in message
news:et******** ******@TK2MSFTN GP09.phx.gbl... Brent,
You need to specify which server should send the email
SmtpMail.SmtpSe rver = "[your mail server here]"
Sincerely,
-- S. Justin Gengo, MCP Web Developer
Free code library at: www.aboutfortunate.com
"Out of chaos comes order." Nietzche
"Brent" <Br***@Brent.co m> wrote in message news:vj******** ****@corp.super news.com... 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 now... MailMessage mail = new MailMessage(); mail.From = from;
mail.To = email;
mail.Subject = subject;
mail.Body = body;
mail.BodyFormat = MailFormat.Html ;
if(email!="")
SmtpMail.Send(m ail); Please help.
Thanks,
Brent
This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
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 executes both on my server or on
the server of the .NET service provider. I'm obviously missing something
very basic and I'm hoping one of you can point out my error. Thank you for
your assistance.
Brian
|
by: CK |
last post by:
Hi All,
I have this problem when try to send a mail by Using
CDO.Message. I got the info from the web, said it may the problem where, the
IIS SMTP setup incorrectly.
My question is How i can know my SMTP was setup correctly? And
how to test it? I did see all the "mailroot" folder did appear in my
"inetpub" folder. And Inside the "mailroot" folder do have all the
subfolders ( which is badmail, drop and etc..).
Please help. Thanks.
|
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 now...
MailMessage mail = new MailMessage();
mail.From = from;
|
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 of configuring developer workstations
and servers, we want developers not to specify a value for
System.Web.Mail.SmtpMail.SmtpServer.
We also have a requirement that on the servers the Application Pools in IIS
|
by: Elie |
last post by:
Hello
I get this error when the code runs from the server as an .asp page or
from a compiled dll.
But When I log onto the server and run a vb program that executes the
same code, it works fine.
this works fine on a different web server as well. They are both
running windows 2003.
| |
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 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.
|
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 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...
|
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 System.Web.HttpCookie
Imports System.Web.Mail
Imports System.Web.Mail.SmtpMail
|
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 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"...
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
|
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
| |
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
|
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
| |
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
| |