Custom 404 Error Message using CDONTS

Results 1 to 2 of 2

Thread: Custom 404 Error Message using CDONTS

  1. #1
    Join Date
    Dec 1969

    Default Custom 404 Error Message using CDONTS

    Hey everyone, Would really appreciate your help in this issue. <BR><BR>I am using a custom 404 error page which sends me an email every time someone stubles on a bad link. I am using massive asp pages and its backended by an access database. <BR><BR>Only trouble is, every time i refresh a page, its sending me error pages which actually do not have any error in them. Please help! <BR><BR>My cdonts code: <BR><BR>&#060;%@ Language=VBScript %&#062; <BR>&#060;%Dim URL, Referer <BR> Dim objCDO <BR> Set objCDO = Server.CreateObject("CDONTS.NewMail") <BR> strURL = Request.ServerVariables("HTTP_URL") <BR> strURL = Right(strURL, (Len(strURL) - (Instr(strURL, chr(59))))) <BR> strReferer = Request.ServerVariables("http_referer") <BR>%&#062; <BR><BR><BR>&#060;% <BR>objCDO.To = "" <BR>objCDO.From = "" <BR>objCDO.Subject = "Attn: Raj, 404 error!" <BR>ObjCDO.Body = strURL <BR>objCDO.Send <BR>%&#062; <BR><BR><BR>Would really appreciate it if you could throw any light on this. <BR><BR>Thanks a bunch in advance, <BR>Raj <BR><BR>This is the error code i am getting by email: <BR> <BR>(my id 3117, works perfectly file too. dont know why it thinks its an error. also it doesnt seem to like gifs and jpegs.) <BR>

  2. #2
    Join Date
    Dec 1969

    Default RE: Custom 404 Error Message using CDONTS

    Looks like you told it to send you a message every time the page loads ... unless this code is in some kind of if statement

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts