PoshCode Logo PowerShell Code Repository

ASPX Mailbox (1 of 6) (modification of post by view diff)
embed code: <script type="text/javascript" src="http://PoshCode.org/embed/505"></script>download | new post

This is part 1 of a 6 part mailbox creation web site.
This site allows local administrators to create and delete mailboxes, and change email addresses. Save this as MailboxTasks.aspx

  1. <%@ Page Language="C#" AutoEventWireup="true" CodeFile="mailboxTasks.aspx.cs" Inherits="mailboxTasks" %>
  2.  
  3. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  4.  
  5. <html xmlns="http://www.w3.org/1999/xhtml" >
  6. <head id="Head1" runat="server">
  7. <title> Domain Exchange Mailbox Tasks</title>
  8. </head>
  9. <body>
  10. <p>
  11. <b>This page is for all domain accounts.</b><br />
  12. <br />
  13. Enter the Logon ID of the user/mailbox that you want to modify.<br /><br />
  14. If you are logged into your workstation with  domain credentials, we will use those for security checks.<br />
  15. If you are not logged in with  domain credentials, you will see a prompt for them.
  16. </p>
  17. <form method="Post" action="MailboxConfirm.aspx" runat="server" id ="frmMailboxTasks">
  18. <table>
  19. <tr>
  20. <td>User's Logon ID:</td>
  21. <td><input type="Text" name="txtTargName" /></td>
  22. </tr>
  23. <tr>
  24. <td><input type="radio" name="rdoMailboxAction" value="Create Mailbox" checked="checked" />Create Mailbox</td>
  25. <td><input type="radio" name="rdoMailboxAction" value="Delete Mailbox" />Delete Mailboxt</td>
  26. <td><input type="radio" name="rdoMailboxAction" value="Change Address" />Change Address</td>
  27. </tr>
  28. <tr>
  29. <td colspan="2"><asp:Button ID="btnNext" Text="Next" Runat="server"></asp:Button></td>
  30. </tr>
  31. </table>
  32. </form>
  33. <hr />
  34. <p>
  35. <b>Information about Creating Mailboxes</b><br />
  36. <b><span style='color:Red'>IMPORTANT:</span></b> You must create the user object before you can mailbox-enable it.<br />
  37. The user object must have values for the agency and last name fields. If these are blank, you will not be able to create a mailbox for the user.<br />
  38. The agency information should be your agencies three-letter acronym."<br />
  39. You need to set this on the user object in Active Directory; find the user object, open the properties, then click on the Organization tab and put your agency acronym in the Company field.<br />
  40.     <br />
  41. Also, please allow several minutes between creating a user object in Active Directory and trying to set up a mailbox.
  42. This will give the new user object time to replicate amongst all of the domain controllers.<br />
  43.     <br />
  44. Exchange 2007 will automatically assign an internet email address for the user. Typically, this will be in the "standard" form: jdoe@domain.com for Jane Doe.<br />
  45. However, if the "standard" email address is already in use, Exchange will set up a non-standard address such as jdoe2@domain.com.<br />
  46. Please check the email address on the mailbox after it's created to see if it is in the correct format.
  47.  If not, contact the Customer Support Center at x2000 and we will set the address to our fall-back standard: jadoe@domain.com.<br />
  48. You can check the email address assigned to the user by pulling up the properties of the user object in Active Directory and looking at the E-mail attribute on the General tab.<br /><br />
  49. <b>Information about Deleting Mailboxes</b><br />
  50. There are two possible scenarios related to deleting an Exchange mailbox:<br />
  51. 1) You don't want to keep the mailbox OR the Active Directory user account. In this case, simply delete the user account from Active Directory. This will simultaneously delete the mailbox.<br />
  52. 2) You don't want to keep the mailbox, but you DO want to keep the Active Directory user account. In this case, use this page and select "Delete Mailbox"<br />
  53. </p>
  54. </body>
  55. </html>

Submit a correction or amendment below (
click here to make a fresh posting)
After submitting an amendment, you'll be able to view the differences between the old and new posts easily.

Syntax highlighting:


Remember me