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

Problem sending mail on Server 2003 "SendUsing" configuration is invalid

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(mail);

Please help.

Thanks,

Brent
Nov 17 '05 #1
2 3470
Brent,

You need to specify which server should send the email

SmtpMail.SmtpServer = "[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.com> wrote in message
news:vj************@corp.supernews.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(mail);

Please help.

Thanks,

Brent

Nov 17 '05 #2
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*****@aboutfortunate.com> wrote in message
news:et**************@TK2MSFTNGP09.phx.gbl...
Brent,

You need to specify which server should send the email

SmtpMail.SmtpServer = "[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.com> wrote in message
news:vj************@corp.supernews.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(mail);

Please help.

Thanks,

Brent


Nov 17 '05 #3

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...
1
by: Bruce W.1 | last post by:
I'm new to ASP (but not ASP.NET) and I'm trying to setup a simple ASP web form to send an email to me. So I try this code: http://www.library.unr.edu/subjects/guides/mailplay.asp I upload the...
1
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...
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...
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...
1
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...
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...
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...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
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...

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.