F
flowergardener
I am learning ASP.NET from the book, "ASP.NET for Dummies". An example for
sending email using SMTP fails on my PC. What does this error mean and how
to fix it.
I am running Windows XP and I have Outlook Express which I assume has
installed SMTP in order to work.
The error screen is:
______________________________________________________________________
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.
Source Error:
Line 13: "important about this message at all."
Line 14:
Line 15: SmtpMail.Send(EMailFrom, EMailTo, EMailSubject, EMailBody)
Line 16: %>
Line 17: </body>
______________________________________________________
This is the code example:
<%@Page Explicit="True" Language="VB" Debug="True" %>
<%@Import Namespace="System.Web.Mail" %>
<html>
<body>
<%
Dim EMailTo As String = "(e-mail address removed)"
Dim EMailFrom As String = "(e-mail address removed)"
Dim EMailSubject As String = "Important message!"
Dim EmailBody As String
EmailBody = "Thanks for reading this message. " & _
"But I must admit, I lied. There's nothing " & _
"important about this message at all."
SmtpMail.Send(EMailFrom, EMailTo, EMailSubject, EMailBody)
%>
</body>
</html>
sending email using SMTP fails on my PC. What does this error mean and how
to fix it.
I am running Windows XP and I have Outlook Express which I assume has
installed SMTP in order to work.
The error screen is:
______________________________________________________________________
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.
Source Error:
Line 13: "important about this message at all."
Line 14:
Line 15: SmtpMail.Send(EMailFrom, EMailTo, EMailSubject, EMailBody)
Line 16: %>
Line 17: </body>
______________________________________________________
This is the code example:
<%@Page Explicit="True" Language="VB" Debug="True" %>
<%@Import Namespace="System.Web.Mail" %>
<html>
<body>
<%
Dim EMailTo As String = "(e-mail address removed)"
Dim EMailFrom As String = "(e-mail address removed)"
Dim EMailSubject As String = "Important message!"
Dim EmailBody As String
EmailBody = "Thanks for reading this message. " & _
"But I must admit, I lied. There's nothing " & _
"important about this message at all."
SmtpMail.Send(EMailFrom, EMailTo, EMailSubject, EMailBody)
%>
</body>
</html>