homeacademy
10-22-2003, 04:11 AM
I am having difficulty using the ASPPOP3 component.
I cannot even get the simple code snippet from the ServerObjects website to work:
[quote]
'############BegincodetakenfromServerObjectwebsite ##############
SetMailer=Server.CreateObject("POP3svg.Mailer")
Mailer.RemoteHost="mail.*****.org"
Mailer.UserName="********@*****.org"
Mailer.Password="**********"
Mailer.OpenPop3
remWecoulddomultipleretrievesherebutthisdemoonlysh owsthe
remselectedmessage.
Mailer.Retrieve1
Mailer.ClosePop3
'############ENDcodetakenfromServerObjectwebsite## ############
response.write"MessageCount:"&Mailer.MessageCount&"
"
response.write"Subject:"&Mailer.Subject
</CODE>
Upon running this code, I get:
[quote]
MessageCount:1
Subject:
</CODE>
This is true for any of the Mailer properties (FromAddress, MessageBody, etc) -- they return null. The above snippet I copied straight from ServerObject. There is one short test message in the account. For some reason, Message Count does return correctly, but nothing else does. Am I doing something wrong, or is the component malfunctioning? Any assistance is appreciated.
I cannot even get the simple code snippet from the ServerObjects website to work:
[quote]
'############BegincodetakenfromServerObjectwebsite ##############
SetMailer=Server.CreateObject("POP3svg.Mailer")
Mailer.RemoteHost="mail.*****.org"
Mailer.UserName="********@*****.org"
Mailer.Password="**********"
Mailer.OpenPop3
remWecoulddomultipleretrievesherebutthisdemoonlysh owsthe
remselectedmessage.
Mailer.Retrieve1
Mailer.ClosePop3
'############ENDcodetakenfromServerObjectwebsite## ############
response.write"MessageCount:"&Mailer.MessageCount&"
"
response.write"Subject:"&Mailer.Subject
</CODE>
Upon running this code, I get:
[quote]
MessageCount:1
Subject:
</CODE>
This is true for any of the Mailer properties (FromAddress, MessageBody, etc) -- they return null. The above snippet I copied straight from ServerObject. There is one short test message in the account. For some reason, Message Count does return correctly, but nothing else does. Am I doing something wrong, or is the component malfunctioning? Any assistance is appreciated.