Getting Exchange Mailbox Size From ASP
Is it possible to get the size of a users exchange 2003 mailbox from ASP?
View RepliesIs it possible to get the size of a users exchange 2003 mailbox from ASP?
View RepliesAnyone know how it is done? This is what I have:
dim exchUser 'line 500
set exchUser = oAddUser 'the user I have added defined as: set oAddUser=oOrgUnit.Create ("user", sAddUser)
dim strServerPath
strServerPath = GetEmailServer
exchUser.CreateMailbox strServerPath
exchUser.SetInfo
But it comes back with: error 800a01b6 line 504 exchUser.CreateMailbox
I have a script (ASP) written which creates an account in AD, creates a folder on our file server and sets its permissions, and then creates a mailbox on the exchange server and sets its permissions... This script use to work fine, and it hasnt been used in 2 months (since we have had no new students since the end of the term).
I have part of the script below. There is alot of code above this script which gets executed perfectly. The code that is missing creates an account in the AD, creates a folder on the file server and gives that folder the correct permissions...
This is the section that does not work, and I am testing seperately with no success... I have checked the permissions on the server (gave the account full permissions), still nothing... I added the account creating the mailboxes to the security in the exchange system manager. Code:
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
Exchange System Manager is running on the web server and Exchange SP2 has
been installed.
The web page uses ADSI code to create a user, and then CDO code to create
the mailbox e.g.
set oOU=GetObject(<LDAP string for OU>)
set oUser=oOU.CreateUser("user",<CN for user>)
' set a bunch of attributes
' now create mailbox
set oMailbox=oUser
oMailbox.CreateMailbox <string representing MTA>
Now, when I connect to this site using my domain admin credentials, it
works. However, if a user connects to this site, the user account is
successfully created in AD but upon reaching the "CreateMailbox" line, I get
Microsoft VBScript runtime error '800a01b6'
Object doesn't support this property or method
Thinking that this was most likely a permissions issue, I took the .asp page
containing the code and converted it to a .vbs file. Then, I logged in as the
user account and used cscript to execute the .vbs file. Both the user account
and the mailbox were created succesfully.
I don't understand why the code runs under the context of a user account as
a vbs script, but doesn't run as an ASP page unless the user is a domain
admin. It's not permissions on AD or Exchange or the code wouldn't have run
as a vbs script. What is different about running it as an ASP page?
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
Exchange System Manager is running on the web server and Exchange SP2 has
been installed. The IIS site is configured with Basic Authentication and
users are prompted to enter their Active Directory credentials when
connecting to the site.
The web page uses ADSI code to create a user, and then CDO code to create
the mailbox e.g.
set oOU=GetObject(<LDAP string for OU>)
set oUser=oOU.CreateUser("user",<CN for user>)
' set a bunch of attributes
' now create mailbox
set oMailbox=oUser
oMailbox.CreateMailbox <string representing MTA>
Now, when I connect to this site using my domain admin credentials, it
works. However, if a user connects to this site, after being prompted by
IIS' basic authentication for AD credentials, the user account is
successfully created in AD but upon reaching the "CreateMailbox" line, I get
Microsoft VBScript runtime error '800a01b6'
Object doesn't support this property or method
Thinking that this was most likely a permissions issue, I took the .asp page
containing the code and converted it to a .vbs file. Then, I logged in as the
user account and used cscript to execute the .vbs file. Both the user account
and the mailbox were created succesfully.
I don't understand why the code runs under the context of a user account as
a vbs script, but doesn't run as an ASP page unless the user is a domain
admin. It's not permissions on AD or Exchange or the code wouldn't have run
as a vbs script. What is different about running it as an ASP page?
I'm using Windows 2000 server n IIS I'm Using FileSystemObject of ASP in Server Every File and Folder has 2 Size when we get properties of any 1 actual size and Size on Disk.now my problem is when i get the file size from ASP object it give Size value but when i try to get folder size it gives size on disk and both values are different.
I'm creating a size to access limited size to upload files so i just check the folder size and then get size for those which are going to update by user then i will less those size to actual folder size to get remaining size.
I have created a simple set of asp pages which do some funky database stuff. One aspect which I would appreciate some help on is Email.I have created these pages for use internally to my work network, mainly admin database entry type stuff. The network has several exchange servers. I would like to send a notification email everytime a function within tthe asp scripts is made (i.e. every time a new set of information is added to a database) to a select few people (which may well change from time to time). Now I thought that I might create a new mailbox on an exchange server and send mail via this, so that if anyone were to reply to the notification mail it would go back to the mailbox. Therefore, using the exchange server mailbox as my pump for shooting off mails all over, I could create an email rule which would forward anything from my asp pages to the relavent people.Couple of questions 1) is this a logical approach 2) if the answer to 1 is yes then what is the best method of shooting off emails from asp scripts to the exchange server?? (would it just be using the SMTP service)
View Replies View RelatedI have written a asp form and i'm trying to figure out how i can connect it to send out an email.
The form is running through the process & isn't showing any errors, but it isn't sending out the email either from the form. I know that our IT guy is running MS Exchange for our email, but I believe that it is on a seperate box as well. Does anyone have any suggestions or advice?
I am trying to configure CDO at my facility and wonder if I should use it
through IIS or our Exchange server? Can anyone point me in the right
direction? We are using Windows 2000 Server with IIS and Windows 2000
Server with Exchange 5.5.
I am writing a small CRM at the moment and would like one of the features to be that the first page picks up mail from a 'info@' mailbox on a locally hosted exchange 2003 server.
I am finding it a nightmare to track-down either how to do this or find the right info, I think partly because the methods may have changed with server upgrades.
Is there a definative method I should be using and any pointers to documentation etc.
i have started software and web Development business. But I dont have an idea about Link Exchange what is this.When i develop website for my client how i use Link Exchange in my Client's Website.
View Replies View RelatedI have developed an asp application and I would like to add an e-mailing feature. I have code to send an e-mail but I want to be able to query exchange 2000 or active directory for the users e-mail address. Every users e-mail address is listed in AD and Exchange 2000. I will only have the users username to search with.
View Replies View RelatedI need a code in asp that connect to the Exchange and write the new mails to sql.
View Replies View RelatedI would like to start using Outlook Web Access on my IIS 5.0 server. It has PHP and MySql on there along with their ISAPI filters. Everything works great. It has the ASP support taken off and I would like to re-add this support back to the server.Where is the ISAPI filter located at on the Server?
I am hoping that this would be the only reason that OWA will not work.
I require an Asp script that will enable me to get all sizes of mailboxes held on Exchange Server v5.5. What I want to achieve is to list all users with a mailbox over a certain Kb size.
Does anyone know of a Banner Exchange program in ASP availavble for download - or is there a way to convert PHP programs into ASP.
View Replies View RelatedI am an intermediate with ASP and i'm not sure if this is possible but i'll give it a shot. I am creating a Listserv (newsgroup) and I want them able to reply to messages in there email. Right now I have sign up form online which connectes to an access db which stores the emails. The admin uses a web based form to send letters and if the subscribers want to send a message or reply they have to use another web form. How can I use exchange server to eliminate the web based forms?
So basicly I want them to reply in like outlook, but the emails are all in access. So when they reply to the list email (list@home.com), somewhere in the exchange server the server will read the db and send the message to the subscribed emails.
We have a client who have exchange servers and they use active directory. From their intranet (asp) we need to have a link to the exchange server but we need to pass the window logon credentials, so they don't have to log in again on the exch server. How do I go about this?
View Replies View RelatedI am wondering if it is possible to add an exchange user/mailbox via ASP (or ASP.NET).
I've seen some examples using ADSI, but I am wondering what the simplest way of doing this is.
Our company currently has a SQL Server 2000 database with various client information, accessed through an ASP driven intranet. We also use Exchange 2000 and a shared contacts folder. Many of the contacts are also in the SQL Db and when we get a new client, information is often entered in both places.
What I would like to figure out how to do, hopefully via ASP is create a user-defined field in the shared contacts which is their recordid in the SQL db and then be able to grab info from Exchange where needed so we would not have address & telephone numbers in both Exchange and the SQL db.
I've done a little research on using MAPI with ASP but most of what I've found relates to sending mail, not to working with shared contacts.
Is it in ASP possible to make a webpage with folders and
subfolders where people (if they have the right password) can
download and upload files. An uploadet file should appear on the
webpage for others to use as soon as it is there.
There is probably a name for this system. I would prefer if it
could work like the Total Commander, on the internet.
I have worked with CDO mail before at a different job, but at that job I was developing internet sites, and now I am developing Intranet apps. We have the following setup, WWW/SQL on 1 server, mail server, PDC and SDC (and Proxy), all OS's are Windows 2000 Server (except Proxy, it is NT4).
What would be the best way to allow sending emails from ASP?
I have an application where I access Exchange server via an ASP-file whit
the following code:
objSession.Logon "", "", False, True, 0, True, "ExchangeServerName" & vbLF &
"mailboxUser
This works fine for years on one server. I now want to move the application
to a new server I get error code number 424. I use the same Exchange server
and the same mailboxUser but from a different server. Anyone knows what the
error code 424 means?
Does any one know how to access Information from a Corporate Network's Exchange Server, such as an Address Book or Address Entriers for a user curerntly logged on, by means of COM (CDO) using ASP (VBScript)
View Replies View RelatedI'm sending email from a networked computer that uses an exchange server on yet a different computer. With the two different types of code posted below, the email will only send successfully on my computer. When I step into a colleague's office (using the same exchange server), no email is ever sent....
View Replies View RelatedMy prod box consists of the following:
- Windows 2003 Server
- Exchange 2003
If I use cdoConfig to send emails from my .asp application do I need to include the following typelib on my .asp page if I'm running Exchange 2003:
<!--METADATA TYPE="typelib" UUID="CD000000-8B95-11D1-82DB-00C04FB1625D"
NAME="CDO for Windows 2000 Library" -->
Is this the correct typelib if I'm running Exchange 2003?Or, is there a "CDO for Windows 2003 Library" that I should be using instead?
I have a form with a input text box where a user has to enter a work email address.Is there anyway that he or she can click a link which will open Microsoft Outlook and list all the work email addresses, thereby selecting an email address which will be automatically inoutted into the input text box?
View Replies View RelatedI have asp for an employee directory with photos. All the info is stored in an Access database including e-mail address and phone number. I would really like to get the e-mail and phone numbers from our Outlook/Exchange address book. This address book is kept updated but my database is not. How would I go about extracting this info from our global address list? Would it be better to create something that updated the Access database offline rather than dynamically query each persons entry from the web server? Any hints on how to do either?
View Replies View RelatedI have developed a fairly simple CMS for my intranet at work - I would like to have a "Request a photographer form" that e-mails me the posted data by utilizing our intranet exchange server, if possible.
I'm not really looking to code this but I will if I absolutely have to =) Anyone know how to do it or where I can find a simple form script that does? I have found lots that work with sendmail and other types of servers but none for exchange.
How would I be able to simply read an MS Exchange Server 2000 mail and transfer it to a SQL Server 2000 database programmatically. I need reference for this an has been unsuccessful in looking for any for the past week already.
View Replies View RelatedI am looking for a ASP Links Exchange Script. if there is any ASP Links Exchange Script, then let me know. Because i m Tired of Adding links and then Uploading FTP and more.
View Replies View RelatedI have no knowledge of Exchange server, and have always used CDO to send emails from ASP in the past. the server in question doesn't have SMTP installed alongside IIS, it has Exchange installed which apparantly does have SMTP capabilities but not like the default ones normally accessbile via IIS.
Has anyone ever used this approach to sending emails? I'm hoping that I dont need a component or anything else, just some changes to my existing email code.
I would like to display an Exchange 2000 contact list in the public information store. Is it possible through asp? If yes, anybody have some info?
View Replies View Related