ASPpop3 query

Results 1 to 2 of 2

Thread: ASPpop3 query

  1. #1
    Join Date
    Dec 1969

    Default ASPpop3 query

    Any idea why this only seems to delete 1 record, even when there are thousands matching the criteria ?<BR><BR>&#060;%<BR><BR>Server.ScriptTimeout = 30000<BR><BR>Set Mailer = Server.CreateObject("POP3svg.Mailer")<BR>Mailer.Re moteHost = ""<BR>Mailer.UserName = "username"<BR>Mailer.Password = "password"<BR><BR>Mailer.OpenPop3<BR><BR>Mailer.Ge tPopHeaders<BR><BR><BR>For x = 1 to Mailer.MessageCount<BR><BR>&#039; Retrieves email to memory<BR>strMsg = Mailer.RetrieveToMemory(x)<BR>strSubject = Mailer.Subject<BR> <BR> If Instr(strSubject, "Delivery")&#062;0 Then<BR> <BR><BR> Mailer.Delete(x)<BR><BR> End if<BR>Next<BR>Mailer.ClosePop3<BR><BR><BR>Response .write("All done!")<BR>Response.write(" ")<BR>Response.write x<BR>Response.write(" deleted")<BR>%&#062;

  2. #2
    Join Date
    Dec 1969

    Default Case senstivity maybe?

    If Instr(UCase(strSubject), "DELIVERY")&#062;0 Then<BR><BR>Also have you debugged? IE did you try response.writing out the Subjects for the first few mails to make sure the word delivery is within the subject? I&#039;m not familar with this component, the online docs for it seem to leave a lot to be desired.

Posting Permissions

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