error sending mail

Gerwin

New Member
I added this line before SmtpMail.Send<BR>SmtpMail.SmtpServer = "ServerNameHere"<BR><BR>mattI have beta 2 on one server(win2k pro) that sends my email fine but the same code on my local pc fails running version 1 under xp pro returns this error message when sending email<BR>Could not access 'CDO.Message' object.<BR><BR>My code looks like this<BR>Imports System.Web.Mail<BR><BR>Public Class ErrorHandler<BR> Public Sub ProcessErrors(ByVal strError As String, ByVal strPage As String, ByVal strFN As String, ByVal strUser As String)<BR> Dim objMail As New MailMessage()<BR> With objMail<BR> .To = "[email protected]"<BR> .From = "mywork.com"<BR> .Subject = "ADO Error occured"<BR> .Body = "At " & Now() & " the following error occurred:" & vbCrLf & _<BR> "the user is: " & strUser & vbCrLf & _<BR> "the page is: " & strPage & vbCrLf & _<BR> "the function is: " & strFN & vbCrLf & _<BR> "the error message is: " & strError<BR> .Priority = MailPriority.High<BR> SmtpMail.Send(objMail)<BR> End With<BR> End Sub<BR>End Class<BR><BR>I don't think it's a permissions problem as we're looked into that already. Any ideas out there?<BR><BR>matt
 
Back
Top