Ews API change Mailsignature

Source: Internet
Author: User

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.

 

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.