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

Trouble w sending email

Hi,

Trying to send an email with .net from my home computer.

A very simple one...

***************************
<%@ Page Language="VB" %>
<%@ Import Namespace="System.Web.Mail" %>
<script runat="server">

Sub Button1_Click(sender As Object, e As EventArgs)
SmtpMail.Send( _
"ke***********@sverige.nu", _
"ke***********@sverige.nu", _
"Testing mail", _
"Just sending a test message!")
End Sub

</script>
<html>
<head>
</head>
<body>
<form runat="server" ID="Form1">
<asp:Button id="Button1" onclick="Button1_Click" runat="server"
Text="Button"></asp:Button>
</form>
</body>
</html>
**********************

I'm getting this error message

********************************
Configurationvalue "SendUsing" not valid.
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:
Configurationvalue "SendUsing" not valid.

Source Error:
Line 4:
Line 5: Sub Button1_Click(sender As Object, e As EventArgs)
Line 6: SmtpMail.Send( _
Line 7: "ke***********@sverige.nu", _
Line 8: "ke***********@sverige.nu", _

*********************************

I've checked that smtp services are on

What does "Sendusing" indicate?

Cheers.

Kenneth
Nov 19 '05 #1
1 1093
The problem might be cos you're not specifying the SMTP server to send
through.

"Kenneth P" <Ke******@discussions.microsoft.com> wrote in message
news:E0**********************************@microsof t.com...
Hi,

Trying to send an email with .net from my home computer.

A very simple one...

***************************
<%@ Page Language="VB" %>
<%@ Import Namespace="System.Web.Mail" %>
<script runat="server">

Sub Button1_Click(sender As Object, e As EventArgs)
SmtpMail.Send( _
"ke***********@sverige.nu", _
"ke***********@sverige.nu", _
"Testing mail", _
"Just sending a test message!")
End Sub

</script>
<html>
<head>
</head>
<body>
<form runat="server" ID="Form1">
<asp:Button id="Button1" onclick="Button1_Click" runat="server"
Text="Button"></asp:Button>
</form>
</body>
</html>
**********************

I'm getting this error message

********************************
Configurationvalue "SendUsing" not valid.
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:
Configurationvalue "SendUsing" not valid.

Source Error:
Line 4:
Line 5: Sub Button1_Click(sender As Object, e As EventArgs)
Line 6: SmtpMail.Send( _
Line 7: "ke***********@sverige.nu", _
Line 8: "ke***********@sverige.nu", _

*********************************

I've checked that smtp services are on

What does "Sendusing" indicate?

Cheers.

Kenneth

Nov 19 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

9
by: Penn Markham | last post by:
Hello all, I am writing a script where I need to use the system() function to call htpasswd. I can do this just fine on the command line...works great (see attached file, test.php). When my...
3
by: Ant | last post by:
Hi, I'm using the MailMessage & smtpMail classes in System.Web.Mail to send mail, however it's not sending any emails. I'm using it on a Windows 2003 server. The simplest way to use this is...
4
by: aroraamit81 | last post by:
Hi, I am using CDO component to send emails through my ASP page as I am having IIS on windows XP.......... Now the mails goes and gets into mailroot\Queue folder but does not reaches to the...
2
by: Terry Olsen | last post by:
When trying to send an email, I get the following exception. It says that the sender address is invalid, but it is perfectly valid. Any suggestions? Error sending email using mail1.us.ups.com...
27
by: stonemcstone | last post by:
I've been programming in C for years, and never experienced troubles until I started using the new RealC-32, a freeware C compiler from the same company that makes RealPlayer and Quicktime. That's...
2
by: Nathan Sokalski | last post by:
I have an ASP.NET 2.0 application that is supposed to send an email after a certain form is submitted. When it tries to send the email, I receive the following error: Transaction failed. The...
3
by: mindlike | last post by:
I have a form "DataEntry" with various fields "Ticker", "TickerName", etc. I want to autofill the "TickerName" field when I insert the Ticker in the "Ticker" field. So when I put IBM into the...
2
by: Rozzy | last post by:
Hi, I'm having trouble using the proper terminology, so bear with me, I am trying to submit text to a mysql database. I want to be able to allow formatting of this content (like breaking it up into...
9
by: JoeP | last post by:
Hi All, How can I find the reason for such an error: Failure sending mail. Some Code... oMailMessage.IsBodyHtml = False oMailMessage.Body = cEmailBody Dim oSMTP As New SmtpClient...
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...
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...
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: 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
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...

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.