Trying to send an email with .net from my home computer.
A very simple one...
***************************
<%@dotnet.itags.org. Page Language="VB" %>
<%@dotnet.itags.org. Import Namespace="System.Web.Mail" %>
<script runat="server"
Sub Button1_Click(sender As Object, e As EventArgs)
SmtpMail.Send( _
"kenneth.philp@dotnet.itags.org.sverige.nu", _
"kenneth.philp@dotnet.itags.org.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: "kenneth.philp@dotnet.itags.org.sverige.nu", _
Line 8: "kenneth.philp@dotnet.itags.org.sverige.nu", _
*********************************
I've checked that smtp services are on
What does "Sendusing" indicate?
Cheers.
KennethThe problem might be cos you're not specifying the SMTP server to send
through.
"Kenneth P" <KennethP@.discussions.microsoft.com> wrote in message
news:E07039CF-3FD5-49CD-BF51-EE5BF7A5BFF6@.microsoft.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( _
> "kenneth.philp@.sverige.nu", _
> "kenneth.philp@.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: "kenneth.philp@.sverige.nu", _
> Line 8: "kenneth.philp@.sverige.nu", _
> *********************************
> I've checked that smtp services are on
> What does "Sendusing" indicate?
> Cheers.
> Kenneth
0 comments:
Post a Comment