Objective
At present, the major portals have launched their own mail service system, and increasingly powerful, such as Tencent QMail; however, as a company's official mail, it is believed that the e-mail address using the company's domain name more convincing (for example, c.com to use the mail service@c.com as a letter account). is to set up the company's mail server is also an important matter, should not neglect. Imagine sending an email to a customer to provide a list of items that have recently arrived, and not saying that the service account can be successfully registered-can you speculate on how the user saw this email? service@qq.com This is the message sent to me by QQ? Or the C company sent me the information? Who is selling the product? is the content in the message trustworthy? ...... Naturally, you may feel that this seems too alarmist, anyway, to exempt users from guessing makes users believe that the source of the product is also the top priority of the sale of products, it also shows that the use of autonomous mail server has its important side.
Fortunately, the choice of mail server software is not a few, foreign production, domestic characteristics. As the oldest imail under Windows Server is my first choice, after all, it makes me more comfortable (this is certainly not a generalized, for example, some large companies of large products or the end of the external enemy, Twilight and Died), unfortunately, if the configuration can not when you may be tortured by it very miserably This is also the original intention of writing this article, and my main purpose is to use imail can smoothly and correctly outgoing (for example, send to use QQ mailbox customer) mail to our customers, in addition to help meet the same problem, they may find the same as Wensau the Internet, on the forum to see/ Send a post and encounter cattle people are very secretive and cherish words such as gold only give you 32 English letters (such as "DNS", etc.), in fact, the problem is not Wensau, or as a Chinese to give you a lot of reading English, or to encourage you to "reload the system, reload XXX" embarrassment.
The text is clear, then I will introduce two things:
A viable configuration for the 1.IMail SMTP service.
2. Use System.Net.SmtpClient to send mail.
Feasible configuration of IMail SMTP service
The reason I pet the SMTP service is because it's the most annoying source of use for imail, many people have encountered the situation can not send mail, such as the erection of good, can not be issued, can not send, but there can not be outgoing, can only be sent to the local server account .... To tell the truth, a good temper in smttp many times provoked also wanted to eat it.
The use of the IMail version is 8.22,imail installation process is quite simple, in this article is not willing to repeat the detailed process, the example of the use of http://www.testimail.com/as the site's domain name, the following is Wensau in the installation process to fill in the contents:
HostName = testimail.com
Database = IMail User database (you want to use external databases, such as SQL SERVER, to configure yourself, I guess the main purpose of using IMail is as a server to send external mail, rather than a post office that provides a qmail).
IMail offers a number of attentive services, if you and I just want to set up a simple system can be outgoing mail, I suggest you choose the following IMAIL services:
1.IMail SMTP Server (This is required for Wensau purposes)
2.IMail Queue Manager Service
3.IMail Web Service (if you are not all cases are automatically sent by the program, this service will give you a Web site-style user interface, you can find a more beautiful point of the Chinese interface to replace the default interface, although Wensau also agree with Vain, But ugly too much should not go out to greet people, such as IMail's own interface