sorry this is vb not asp, but i get faster responses here..
and is vb related some how..
here is my mail function
i have that in a file and i include it with my asp page,sCode:Function SendEmail( sEmailServer, sFromEmail, sToEmail, sSubject, sText ) Dim objMail Set objMail = CreateObject("Persits.MailSender") objMail.From = sFromEmail objMail.Host = sEmailServer objMail.AddAddress sToEmail objMail.Subject = sSubject objMail.Body = sText On Error Resume Next objMail.Send If Err <> 0 Then SendEmail = "An error occurred: " & Err.Description End If Set objMail = nothing End Function
since i dont get error including it... i assume it includes the file correctlly...
and i try to call the function from my asp pages as follow
i get the following errorCode:errMsg = SendEmail("lndn1.on.wave.home.com", "[email protected]", Email, "1", "1" )
anyone know why? thanksCode:Error Type: Microsoft VBScript runtime (0x800A000D) Type mismatch: 'SendEmail'


Reply With Quote