asppop3 messagecount o.k. but no content

Discussion in 'Classic ASP' started by glynhodges, Sep 28, 2005.

Thread Status:
Threads that have been inactive for 5 years or longer are closed to further replies. Please start a new thread.
  1. I am trying to use the asppop3 component to retrieve and read email.

    the messagecount is correct but when I try to display like this :-

    do while counter <= mailer.messagecount
    Mailer.Retrieve counter
    response.write "Message Count: " &amp; Mailer.MessageCount &amp; ""
    response.write Mailer.MessageID &amp; ""
    response.write Mailer.Date &amp; ""
    response.write Mailer.Subject &amp; ""
    response.write Mailer.FromName &amp; ""
    response.write Mailer.FromAddress &amp; ""
    response.write Mailer.BodyText &amp; ""
    counter = counter + 1
    loop

    Mailer.ClosePop3

    all I get is blanks. I have tried without the loop and the counter on fixed numbers but that is the same.
    with the messagecount correct I must be accessing the mail so why wont they display for me ?

    or,
    is there a better way ?

    thanks in advance
     
  2. replaced mailer.retrieve with mailer.retrievetomemory and everything now works.


    what mailer.retrieve is supposed to do god only knows.


    sorry about that.
     
Thread Status:
Threads that have been inactive for 5 years or longer are closed to further replies. Please start a new thread.

Share This Page