I've tried using this example, but I get a error message:
[CODE
http://support.microsoft.com/default.aspx?scid=kb;en-us;31027
[CODE
Error message is:
[ERROR
System.Web.HttpException: Could not access 'CDO.Message' object. ---> System.Re
lection.TargetInvocationException: Exception has been thrown by the target of a
invocation. ---> System.Runtime.InteropServices.COMException (0x80040211): Th
message could not be sent to the SMTP server. The transport error code was 0x80
40217. The server response was not availabl
--- End of inner exception stack trace --
at System.RuntimeType.InvokeDispMethod(String name, BindingFlags invokeAttr
Object target, Object[] args, Boolean[] byrefModifiers, Int32 culture, String[
namedParameters
at System.RuntimeType.InvokeMember(String name, BindingFlags invokeAttr, Bin
er binder, Object target, Object[] args, ParameterModifier[] modifiers, Culture
nfo culture, String[] namedParameters
at System.Web.Mail.LateBoundAccessHelper.CallMethod(Object obj, String metho
Name, Object[] args
--- End of inner exception stack trace --
at System.Web.Mail.LateBoundAccessHelper.CallMethod(Object obj, String metho
Name, Object[] args
at System.Web.Mail.CdoSysHelper.Send(MailMessage message
at System.Web.Mail.SmtpMail.Send(MailMessage message
at WebMail.Class1.Main(String[] args) in c:\documents and settings\michael\m
documents\visual studio projects\consoleapplication1\class1.cs:line 34 Excepti
n caught
Press any key to continu
[ERROR
Any idea's on what's going on, or will this too not work on C#.NET2002 too??
Dab
: