PDA

View Full Version : ASPPOP3 Component?


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.

Eric
10-22-2003, 04:52 AM
Sorry, late night.....
Since you are POPing, your original setting was correct. It should be set to mail.*****.org

Your code looks okay. You may want to display other properties of the email header, eg mailer.fromaddress. If you have a blank subject line, your result will be blank.

homeacademy
10-22-2003, 05:36 AM
No problem. I was pretty sure the code was correct, since I took it straight from ServerObject. EVERY property I try to display is null (FromAddress, MessageID, BodyText, everything). I just don't understand. I have set up a test account, sent only one message to it, with nothing else in the account -- it still doesn't work. What should I try next?

Eric
10-22-2003, 07:13 AM
try using: localhost
instead of: mail.*****.org

homeacademy
10-22-2003, 07:34 AM
I changed it to Mailer.RemoteHost = "localhost"

Now the script just hangs for awhile, then returns this:

[quote]
MessageCount:0

ActiveServerPageserror'ASP0113'

Scripttimedout

/antispam/testmailer.asp

Themaximumamountoftimeforascripttoexecutewasexceed ed.Youcanchangethislimitbyspecifyinganewvalueforth epropertyServer.ScriptTimeoutorbychangingthevaluei ntheIISadministrationtools.</CODE>

The message count is incorrect (there's still a message there) and the script times out. I tried it several times. What next?

crashNBurn
12-16-2003, 04:33 AM
Serverobjects.com sucks! Anyone agree say IIIIIIIIIII!

Makes even wonder about discountASP! Do they even bother to ensure that good support is available for the damn software before buying it, f#uck!

Anyhows, here's a 2 and half maybe 2 day saver tip for you

Try using the RetrieveToMemory! method instead - Mailer.RetrieveToMemory

[}:)]

Eric
01-05-2004, 05:25 AM
Microsoft has dropped their support for CDONTS. Best to move to CDO or any of the email components that we offer.

rory
01-05-2004, 12:21 PM
try using CDOnts if you are unhappy with this mail component. Both work for me fine for the past few years.

rory
01-20-2004, 08:20 AM
[b]quote:Originally posted by dasp

Microsoft has dropped their support for CDONTS. Best to move to CDO or any of the email components that we offer.
</blockquote id="quote"></font id="quote">

I have been away from ASp for a few months now, whats CDO?
My mailing list is still using Cdonts as we speak. The other mail components never worked on my previous server, ill give it a try on this one as soon as I get a chance.

Rory

Eric
01-20-2004, 09:56 AM
See: http://kb.discountasp.net/article.aspx?id=10078