473,324 Members | 2,124 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,324 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 15 '05 #1
2 4574
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 15 '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 15 '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: 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: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
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...
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: 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...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
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: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you

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.