Ver Mensaje Individual
  #1 (permalink)  
Antiguo 02/06/2005, 09:08
whiteWolf
 
Fecha de Ingreso: agosto-2004
Ubicación: Mexico
Mensajes: 49
Antigüedad: 20 años, 6 meses
Puntos: 1
Could not access 'CDO.Message' object

Hola, tengo un problema al enviar un e-mail desde una aplicacion. el error que aparece es : Could not access 'CDO.Message' object. El código que utilizo es el siguiente:

Dim mail As New MailMessage
mail.To = "[email protected]"
mail.From = "[email protected]"
mail.Subject = "this is a test email."
mail.Body = "Some text goes here"
SmtpMail.SmtpServer=System.Configuration.Configura tionSettings.AppSettings("SMTPpserver")
Try
SmtpMail.Send(mail)
Catch ex As Exception
Response.Write(("The following exception occurred: " + ex.ToString()))
'check the InnerException
While Not (ex.InnerException Is Nothing)
Response.Write("--------------------------------")
Response.Write(("The following InnerException reported: " + ex.InnerException.ToString()))
ex = ex.InnerException
End While
End Try

Anexo un poco mas del mensage de error que me aparece:

The following exception occurred: System.Web.HttpException: Could not access 'CDO.Message' object. ---> System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.Runtime.InteropServices.COMException (0x80040220): The "SendUsing" configuration value is invalid. --- End of inner exception stack trace --- at

Cualquier ayuda será muy bien recibida, gracias.