AspPop3 hjælp
Hej - tjek lige nedenstående kode:<%
'Open a connection to the POP3 server
Dim Mailer
Set Mailer = Server.CreateObject("POP3svg.Mailer")
Mailer.RemoteHost = "mail.domæne.dk"
Mailer.UserName = "bruger@domæne.dk"
Mailer.Password = "password"
Mailer.OpenPop3
'Find out how many messages there are
Dim iMessages
iMessages = Mailer.MessageCount
Response.Write "There are " & iMessages & " messages on the server.<p>"
Dim iLoop
'Display the table
Response.Write "<table border=1 align=center cellspacing=1>"
Response.Write "<tr><th> </th><th>Subject</th><th>From</th></tr>"
'Loop through all of the available messages
For iLoop = 1 to iMessages
If Mailer.Retrieve(iLoop) then
Response.Write "<tr>"
Response.Write "<td><a href=""readMessage.asp?ID=" & _
iLoop & """>Read</a></td>"
Response.Write "<td>" & Mailer.Subject & "</td>"
Response.Write "<td>" & Mailer.FromName & " (<a href=""mailto:""" & _
Mailer.FromAddress & """>" & Mailer.FromAddress & _
"</a>)</td>"
Response.Write "</tr>"
End If
Next 'iLoop
Response.Write "</table>"
'Close the connection to the POP3 server
Mailer.ClosePop3
%>
Jeg har blot copy-pastet denne side så koden burde være korrekt. Problemet er imidlertid at jeg kun får flg. at se:
There are 1 messages on the server.
Subject
From
Den viser altså ikke afsender, emne osv...
Nogen ideer?
