The email system has been running for the past year. It is a Web Mail system based on Microsoft Exchange. It involves sending and receiving emails, drafts, unread lists, contacts, contact groups, and email signatures, upload large attachments ......
Briefly describe its main functions:
Email sending and receiving:
Unread list:
Draft: it is not cumbersome. It has the same functions as 126 and QQmail;
Break;
Contact:
Contact Group: Synchronize all data of owa and provide some simple business logic such as adding, deleting, and querying. For example, mobile, copy, and so on.
Break;
Large attachment upload: First, let's talk about the implementation goal. In the case of multiple users and high concurrency, the pressure on the server is minimized. Simply put, the upload is performed using the input control, use iis to host the uploaded content, read part of the content from the memory, write it into the hard disk, and then iterate until all the files are uploaded. Then, according to the test, the pressure on the server's memory for uploading 100 MB of files to 600 million users simultaneously cannot exceed 100 MB; compatible
Net 2.0-4.5;
Break;
Email signature:
Code attached:
Folder Root = Folder. Bind (MyExchangeService, WellKnownFolderName. Root );
UserConfiguration OWAConfig = UserConfiguration. Bind (MyExchangeService, "OWA. UserOptions ",
Root. ParentFolderId, UserConfigurationProperties. All );
String hsHtmlSigniture = "www.blah.com \"> Glen Scales ";
String stTextSig = "Text sig ";
If (OWAConfig. Dictionary. ContainsKey ("signaturehtml "))
{
OWAConfig. Dictionary ["signaturehtml"] = hsHtmlSigniture;
}
Else
{
OWAConfig. Dictionary. Add ("signaturehtml", hsHtmlSigniture );
}
If (OWAConfig. Dictionary. ContainsKey ("signaturetext "))
{
OWAConfig. Dictionary ["signaturetext"] = stTextSig;
}
Else
{
OWAConfig. Dictionary. Add ("signaturetext", stTextSig );
}
OWAConfig. Update ();
Break;
If you are not familiar with Microsoft Ews, you can ask me, Shenzhen programmer discussion group: 182202961.