First time .NET user, having trouble with aspnetpop3

Discussion in 'ASP.NET / ASP.NET Core' started by bluebeard96, Jun 2, 2006.

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 a complete newbie to .NET. I have tried numerous searches and have having trouble with my first little project here. What I'm trying to build is a script that will check an email account (using aspNetPOP3), download attachments from the email (using aspNetMime), then reply to the sender with the attachments only (using aspNetEmail). One of my fellow blackberry users gets emails with art proofs, for emaple, that he needs to forward to his client. Unfortunately, on the blackberry, when wh forward an email the body and the attachment always stay together. We don't want the body of the message, as it contains vendor sources, etc, that we wish to keep private.

    Ok, so here is the start of my code.

    <%@ Assembly name="aspNetPOP3, Version=2.0.0.0, Culture=neutral, PublicKeyToken=bc571e8da1c1f543" %>
    <%@ Assembly name="aspNetEmail, Version=3.0.0.0, Culture=neutral, PublicKeyToken=bc571e8da1c1f543" %>
    <%@ Import Namespace="aspNetPOP3"%>
    <%@ import Namespace="aspNetEmail" %>
    <%@ import Namespace="aspNetMime" %>
    <%@ Import Namespace="System.IO" %>


    <script runat="server" language="VB">

    Dim pop As New POP3("*****", "*****", "*****")
    pop.Connect()

    ...
    ----------------------------------------

    Per this post (http://community.discountasp.net/default.aspx?f=6&amp;m=9568) I downloaded the trial versions and copied aspNetPOP3.dll, aspNetEmail.dll, and aspNetMime.dll to my bin directory. When I attempt to load the page, I get the following error message:

    BC30560: 'POP3' is ambiguous in the namespace 'aspNetPOP3'.

    referring to this line:

    Dim pop As New POP3("*****", "*****", "*****")


    What am i doing wrong?
     
  2. Ok, made some progress here. Actuallt had to remove the Email and POP2 dlls from the bin. I was getting an undeclared error on my pop variable, but that was because I wasn't running it inside a method.


    All good now.
     
  3. In this scenario, you are using the older assemblies installed on the server. If you need to use the newer DLLs, leave them in the bin of your app and reference their respective versions in your Assembly tag. Click on the properties on the DLL file for the exact assembly version.

    Aristotle

    DiscountASP.NET
    www.DiscountASP.NET
     
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