[thelist] E-mails into database (again!)
Norman Beresford
n.beresford at anansi.co.uk
Mon Aug 8 07:28:58 CDT 2005
Hi Kevin
> 1. I will be accessing a Freeserve account, so is the
> EmailHost in line 2 pop.freeserve.com?
Yes. The code I have in there lets you specify which EmailHost in the
web.config file, which means you can alter it without recompiling the
code
> 2. Presumably I need to set EmailPort to 110
Ditto :)
> 3. What does pop.GetAccountStat() do? I can't find anything about it.
It gets the account status information
> 4 Does this return the e-mails as a string? If so is m the
> string, e.g. if I added the line response.write m would it
> print out the e-mails?
It returns a pop3.Mail.Pop.Pop3Message object. This gives you access to
various properties, such as the body of the message as a string.
> 5. Do I not have to close the connection to the pop3 server?
Yes you do
> 6. You gave me the link
> http://www.codeproject.com/csharp/pop3client.asp but this
> seems to be about C#, am I missing something obvious because
> I can't see how that relates to the code above.
There's a link to the VB.Net version of the code from that article.
Basically compile the code from the codeproject article, then reference
the dll it produces in your project/page and you'll be able to access
the various pop.Mail.Pop.* objects.
HTH
Norman
More information about the thelist
mailing list