Add an email account to a windows 2003 pop3 service using script
2719Add an email account to a windows 2003 pop3 service using scripthttp://www.pstruh.cz/tips/detpg_add-pop3-user-account-windows/You can use two ways to manage windows 2003 pop3 service and it's email accounts. Microsoft has two basic ways to do it:
- using pop3 service snapin to mmc (p3server.msc) for interactive work
- using winpop.exe command line. The command line can be used to manage accounts from script, but you will have a lot of work with monitoring output, etc.
Better way is to use P3Admin.dll and it's programming interface. The DLL is not finished work (as you can see inside the DLL), but is is a better way for the task than command line.
You can manage the accounts locally or remotelly. You will need P3Admin.dll, P3Store.dll, Pop3Auth.dll, Pop3evt.dll, pop3perf.dll and pop3snap.dll DLLs (registerred using regsvr32)
Next function lets you add an user email account to windows 2003 pop3 service using script or other programming environment. The script bellow is written in VBA 6 (You can use it in Visual basic 6, Excel, Access, ...), you can simply modify the script for VB Script or VB.Net.ASP > Tips and Tutorials > Email SystemsOct 10, 2006Antonin Foller
If you have IIS SMTP service installed on your machine, you can send an email using the service and CDONTS.NewMail object. This object lets you send text or HTML emails (with attachment/images) by a simple way, but its performance is not so good. You can send only several few emails per second. Next sub shows basic CDONTS.NewMail idea.
Here's the Basic code for using CDO for emailing on an NT / IIS server. You must include the first section to instantiate the object, and the rest are the standard email sections. Be sure to fill in valid email addresses in the FROM and TO sections below.
I recently got an email from someone who had been receiving emails from my site asking him to confirm his subscription to my newsletter and his membership
Joining mailing list will entitle you
to receive occasional emails informing you of news and
updates to the site and any special offers that may be
of interest to you.