473,405 Members | 2,176 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,405 software developers and data experts.

How to use P3Admin to create email accounts?

I am very new to asp.net and I am currently working on an application
that when users sign up it also creates a email account for them.I have
done some reserch and found that this is possible to do using
P3admin.dll but for the life of me I cannot figure out how. Has anyone
successfully done this and/or have an example I could look at? (C#)

Apr 28 '06 #1
8 2306
http://www.motobit.com/tips/detpg_ad...count-windows/


Juan T. Llibre, asp.net MVP
aspnetfaq.com : http://www.aspnetfaq.com/
asp.net faq : http://asp.net.do/faq/
foros de asp.net, en español : http://asp.net.do/foros/
===================================
"Brady Love" <op******@gmail.com> wrote in message
news:11**********************@j33g2000cwa.googlegr oups.com...
I am very new to asp.net and I am currently working on an application
that when users sign up it also creates a email account for them.I have
done some reserch and found that this is possible to do using
P3admin.dll but for the life of me I cannot figure out how. Has anyone
successfully done this and/or have an example I could look at? (C#)

Apr 28 '06 #2
I have been looking at that but I am having a hard time converting it
to c# (never worked with visual basic before) Is there anyone that can
help me out there?

Apr 28 '06 #3
I have been looking at that but I am having a hard time converting it
to c# (never worked with visual basic before) Is there anyone that can
help me out there?

Apr 28 '06 #4
I think i found the problem, which isnt fixable i dont think. I am
guessing the reason I cannot get it to work is because my webserver
doesnt have the p3admin.dll registered? Would that cause any problems?

Apr 28 '06 #5
http://www.carlosag.net/Tools/CodeTr...r/default.aspx
....should give you a good headstart:

public P3ADMINLib.P3User AddPop3User(string MachineName, string UserName, string DomainName, string
Password) {
// get a configuration object.
P3ADMINLib.P3Config P3 = new P3ADMINLib.P3Config();
// get the object from a VB Script/JScript
// Set P3 = CreateObject("P3Admin.P3Config")
// Connect To the remote computer.
if ((MachineName.Length > 0)) {
P3.MachineName = MachineName;
}
P3ADMINLib.P3Domain Domain;
P3ADMINLib.P3User User;
// get the domain object
// TODO: On Error Resume Next Warning!!!: The statement is not translatable
Domain = P3.Domains.Item[DomainName];
if ((Err == 2147942403)) {
// The domain is registered In SMTP but Not In POP3
}
else if ((Err == 2147943755)) {
// the domain does Not exist. Create it.
// TODO: On Error Resume Next Warning!!!: The statement is not translatable
P3.Domains.Add;
DomainName;
if ((Err != 0)) {
// On Error GoTo 0
Err.Raise;
Err;
("Domain "
+ (DomainName + " cannot be added."));
}
}
// add a user account
Domain.Users.AddEx;
UserName;
Password;
if ((Err == 134246480)) {
// ERROR_FILE_EXISTS
// the user account already exists.
// do some action In this Case.
}
// get the created user account
User = Domain.Users.Item[UserName];
return User;
}

Juan T. Llibre, asp.net MVP
aspnetfaq.com : http://www.aspnetfaq.com/
asp.net faq : http://asp.net.do/faq/
foros de asp.net, en español : http://asp.net.do/foros/
===================================
"Brady Love" <op******@gmail.com> wrote in message
news:11**********************@i40g2000cwc.googlegr oups.com...
I have been looking at that but I am having a hard time converting it
to c# (never worked with visual basic before) Is there anyone that can
help me out there?

Apr 28 '06 #6
Umm, yeah, I'd think so.

Is it a Windows 2003 Server ?

Juan T. Llibre, asp.net MVP
aspnetfaq.com : http://www.aspnetfaq.com/
asp.net faq : http://asp.net.do/faq/
foros de asp.net, en español : http://asp.net.do/foros/
===================================
"Brady Love" <op******@gmail.com> wrote in message
news:11**********************@v46g2000cwv.googlegr oups.com...
I think i found the problem, which isnt fixable i dont think. I am
guessing the reason I cannot get it to work is because my webserver
doesnt have the p3admin.dll registered? Would that cause any problems?

Apr 28 '06 #7
Yes. Ill try with the code you supplied and see if it works then, thank
you

Apr 28 '06 #8
Okay I tried with your code and here is what I got. I guess ill have to
see if my host will register the dll :(

Retrieving the COM class factory for component with CLSID
{27AAC95F-CCC1-46F8-B4BC-E592252755A9} failed due to the following
error: 80040154.
Description: An unhandled exception occurred during the execution of
the current web request. Please review the stack trace for more
information about the error and where it originated in the code.

Exception Details: System.Runtime.InteropServices.COMException:
Retrieving the COM class factory for component with CLSID
{27AAC95F-CCC1-46F8-B4BC-E592252755A9} failed due to the following
error: 80040154.

Source Error:

Line 27: public P3ADMINLib.P3User AddPop3User(string MachineName,
string UserName, string DomainName, string Password)
Line 28: {
Line 29: P3ADMINLib.P3Config P3 = new P3ADMINLib.P3Config();
Line 30:
Line 31: if (MachineName.Length > 0)

Apr 29 '06 #9

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: jiing | last post by:
I want to use web interface to do : 1. user accounts management (adminstration side) 2. personal password management (user side) 3. create actual accounts under windows 2003 server( for handling...
1
by: germs | last post by:
Hi all, I find to create and delete user, domain for pop3 service with P3Admin.dll, but I want to change user's password with it. I saw what there are a method ChangePassword in this library, but...
3
by: MLH | last post by:
I was running the following code while logged in as a user belonging only to the Users group. Set usrNew = .CreateUser(Me!UserID) 'The user ID is in a control on the form usrNew.PID =...
4
by: anders | last post by:
Hi! To create a new Windows account I use this code: const int UF_PASSWD_CANT_CHANGE = 0x0040; const int UF_DONT_EXPIRE_PASSWD = 0x10000; DirectoryEntry obDirEntry = new...
5
by: Michael | last post by:
Hello, I've created an ASP web page where users in our organization can create Active Directory computer accounts. The web page is running on a Server 2003 SP1 IIS 6 installation. The...
2
by: JAB | last post by:
Hi, I have MS Exchange 2003 server on the same server i have host my website. I need a web page that people who interested to have theri own email account. I need an ASP .net web page to...
3
vinci
by: vinci | last post by:
hi! can anyone out there tell me where to locate P3Admin.dll? i've been searching the Web for the file (free download) but cant found anything... i have searched my computer for the file but...
4
by: Robbo | last post by:
Hi, PHP - I'm trying to create a MySQL table like an existing MySql table. My PHP code is $query = "CREATE TABLE '".$new_db."'.'".$new_name."' LIKE '". $old_db."'.'".$old_name."'"; echo...
2
by: nja2222 | last post by:
I would like to create a page for my clients to login and check for updates on their accounts. Then I would like to create a page where my employees can login and make updates, specifically new file...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.