ASPEMAILLib.dll help!

  • Thread starter Thread starter Master
  • Start date Start date
M

Master

Hi,

i need to use Persist AspMail with aspx, i have found on the site that i
need to put the dll file in the Bin folder... but bin folder of what?

without it i get the error:

<%@ Import Namespace="ASPEMAILLib" %>

Compiler Error Message: BC30466: Namespace or type 'ASPEMAILLib' for the
Imports 'ASPEMAILLib' cannot be found.


Here's what i have found on Persist site:

AspEmail comes with an ASP.NET wrapper assembly, ASPEMAILLib.dll, which has
to be placed in the \Bin subdirectory of your ASP.NET application.
Alternatively, you can place this file in the Global Assembly Cache.

In C#, create an instance of AspEmail as follows:

<%@ Import Namespace="ASPEMAILLib" %>
<script runat="server" LANGUAGE="C#">
void Page_Load(Object Source, EventArgs E)
{
....
ASPEMAILLib.IMailSender objMail;
objMail = ASPEMAILLib.MailSender();
....
}
</script>

Thx
 
there should be a /BIN folder in the root of the Virtual Directory/Site you
are using for your ASP.NET site.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top