SMTP Service: A Simple and Effective E-mail Solution

SMTP Service: A Simple and Effective E-mail Solution

Currently, the use of e-mail to exchange information, or to serve business and agrave; a very important task. C can you an email box is posted to & yacute; from a & agrave; service provider or a free mailbox. Web background, but atilde; everytime you send a letter go m & agrave; Do you need a software to send and receive e-mail? I want to get to the Simple Mail Transfer Protocol (SMTP) service. Available in Windows 2000 v. c. both in Windows XP v. Windows Server 2003.

To send a message, simply compose a text file in a predefined text (with Notepad, for example), afterwards. You copy the file to the Root folder: InetpubmailrootPickup, right click & The SMTP service will automatically forward the mails. You need to have an email box registered with & yacute; from a & agrave; service provider; It also requires a software such as Outlook Express. New & exclusive; a property of the service. Features of the It is based on the fact that the people who set up & It is possible to write programs that send messages to and from the server. to serve their business. Take & amp; For example, one of the leading telecoms companies in the country - for every quarter of the year, it has to send data to nearly 30 provinces and cities; north to north The system administrator must send at least 30 emails with the subject of the message. The content is the same. The file has been saved for each province and city. The problem has not yet reached the recipient's location. a l By the way, such as system failure or congestion; The Please send again to ensure that the shipping charge is not delayed. The only solution to the problem of agri- culture; Write your own automated e-mail program. This is in line with the needs and requirements of the company. Reduce the complexity of the system. V & agrave; The program must be based on the SMTP service. I would like to introduce important thing service Available in Windows operating system and operating system. We are used to it.

& Save that i will introduce m & atilde; send a mail message via SMTP service. Only focus on discussing the benefits of using the SMTP service provided by IIS (Internet Information Services) in Windows 2000 to send outgoing mail. In some ways, The test of the service, specifically provided by IIS in Windows 2000, is also viewed by x. SMTP Service in Windows XP v. Windows Server 2003 is the same as in Windows 2000, c. self-alignment; Experiment with an easy-to-use interface.

Thanks again, because the e-mails sent are treated as confidential. It is very simple to use SMTP v & agrave; Ensures the use of your e-mail client. Provide your Internet service provider or e-mail client using a fully functional e-mail system such as Microsoft Exchange Server. While an e-mail system with full- It can provide services to handle E-mail a friend & come on, The SMTP service in Windows 2000 is considered an effective solution. You can send your e-mail to us by e-mail or by e-mail. However, the first step is to provide a short description of the problem. Can understand a SMTP operation like that.

The mode of operation of an SMTP

SMTP (Simple Mail Transfer Protocol) l & agrave; One of the major Internet protocols designed to deliver e-mail is a reliable and easy-to-use e-mail client. effective. & yacute; The idea behind SMTP is relatively simple. A person or application sends a message containing the recipient's e-mail address, About & nbsp; ten-nguoi-nhan@ten-cong-ty.com&rsquo ;, c & ugrave with the subject v & agrave; The content of this page.

The sending of the message starts by transferring the password to a specified SMTP server. Based on the domain name of the receiving e-mail address, the SMTP server starts exchanging the addresses with a DNS Server. domain system manager); will make Returns the host name of the SMTP Server to the domain name of the SMTP server. In the end, the SMTP Server initially communicates directly with the SMTP Server through TCP / IP port 25. If the recipient of the e-mail address matches one of the people listed in the owner's e-mail address, the e-mail address associated with the recipient's e-mail address matches one of the recipient's e-mail addresses. The last line will be transferred to the host, waiting for the recipient to receive the mail through a mail program such as Microsoft Outlook.

In the case where the SMTP Server initiates the exchange of direct messages with the host, the SMTP protocol provides a mechanism for transferring the SMTP Server to the server. o through one or more intermediate SMTP relay servers. A forwarding agent will receive the original name and address of the host. after try moving to the owner or to send again to a forwarding agent. Qu & aacute; The message will be repeated until the message has been delivered or the expiration date has expired.

I set SMTP in Windows 2000

Start with the previous version. Microsoft Windows NT, SMTP services & atilde; I set up as part of IIS. Because SMTP services are mainly used in some applications to handle A relatively small number of e-mails sent to you need to be repaired in order to serve the task. Experience has shown that it is important to set SMTP services in a single host. connect to the Internet b & i; V & agrave; After that, The procedures necessary to ensure that the can i set SMTP service.

I set the SMTP Service

1. From the Start menu, point to Settings / Control Panel. & Add / Remove Programs v & agrave; after v Add / Remove Windows Components.
2. In the Windows Components Wizard window, select Internet Information Services (IIS) v & agrave; after click Details. Select the SMTP Service v. Click OK.

& Gt; & yacute; : An IIS server is required to support the SMTP service, such as the Internet Information Services Snap-In, World Wide Web Server, and the Internet. Common Files. The selected items are automatically selected. I & # 39; ve installed it with the SMTP Service section.

Configure SMTP service

If the SMTP service is set to host a connection with an Internet connection, Internet-blocking firewall does not block port 25 of SMTP traffic; The default setting of the SMTP service is & ct; Be ready to send any e-mail messages waiting to be sent. Nevertheless, some settings on m & agrave security; you can be prompted for your SMTP Server. You You can change most of your settings using the Internet Services Manager tool.

To start the Internet Services Manager

1. From the Start menu, point to ProgramsAdministrative Tools.
2. Click Internet Services Manager to start the administration.

To set & lsquo; server logging & rsquo;

1. From & nbsp; In the Internet Information Services dialog box, open the directory. Right-click on the Default SMTP Virtual Server v & agrave; Select Properties.
In the Properties dialog box, click the General tab. Tick ​​the checkbox to enable logging. Attribution by default is not selected.
3. Choose log-file format m & agrave; You prefer (default setting is W3C Extended Log File Format).
777 Flip Flush Fl Fl Fl Fl bxx Fl ks Flib left7 Fless i7 Buck7 Fluxflxxxxx Fl. Flaps Flels7 Flipse77777 Flп. Fl. Ksels av Flunds Flies ... Flan front7777 Flies Flels7 Flies Flels.
5. Adjust the time schedule for the rollover log file if needed.
6. Expand the Extended Properties tab.
7. Select any item. you need to Click OK.

& Gt; & yacute; To limit the size of the log file, you do not need to select a log file. Many of the items in the section. & Ldquo; some content m & agrave; You select the Date, Time, Client IP Address, User Name, Service Name, Method, Sent Items and Agrave; Bytes Received.

To set access control

1. In the Properties dialog box, click the Access tab. Relay & Relay Controls to control how the device handles and transmits data. can forward e-mail to SMTP Server.
2. In the Relay Restrictions dialog box, click Add.
3. In the Computer dialog box, g & otilde; The IP address of the e-mail server is forwarded via the SMTP server. OK & OK to make changes.

Record : If a message has been sent to the SMTP server from the SMTP server, The default setting for the Relay Restrictions function will work fine, unchecked. problem g & igrave ;. However, if the message is sent from a different address, you will have to enter the IP address or domain name of your domain. can be found in the Relay Restrictions window for Relay Restrictions. can operate.

Indicates Smart Host for Transition

If your SMTP Server is behind a firewall, The ability to block any direct SMTP traffic (via port 25), you will have to clear the " A smart host (called smart proxy server) in your network is able to relay all your SMTP traffic to the Internet.

Basically, a Smart Host. can only An SMTP Server is provided to forward an e-mail from an internal SMTP Server directly to the Internet. V & ig; So, a Smart Host must The ability to simultaneously connect to both local and remote networks. Internet to c It can act as an e-mail gateway. V & agrave; once you are To define a Smart Host in your network, I started to set up SMTP Server.

I set SMTP Server

1. In the Properties dialog box, click the Delivery & Variation tab. after Click Advanced & Advanced to open the Advanced Delivery dialog box.
2. In the Smart host field, g & otilde; The domain is fully owned by a Smart Host on your network. You also can The IP address of the Smart Host is enclosed in braces. such as [10.146.32.1]. [] Will support to accelerate quota. Download & install DNS Search.
3. Click OK to make the change.

Verify the operation of the SMTP service

C Some of the tools we use are: You can verify that the SMTP service is running. The activity is performed by the player or player.

Check with a mail delivery software : For the first time, Optional to use a standard Internet mail client such as Microsoft Outlook Express for quick testing. Open Outlook Express, right click on Tools / Accounts & hellip; The Internet Accounts dialog box appears, select the mailbox, click Properties, and then click the Properties dialog box, and then select the Servers tab, in the Outgoing mail (SMTP) field. G & otilde; New domain SMTP Server. Please send a testimonial to a valid e-mail address. v & agrave; check if c. Arrive or depart.

Check with the Pickup folder : Or you? You can send an e-mail message using simple text based on & mdash; Description of SMTP in RFC 822. V & agrave; & ldquo; The contents of a simple text file created in & ldquo; Notepad & rdquo; :

From: TenNguoiGui @ TenMienNguoiGui.com
Big:
TenNguoiNhan@TenMienNguoiNhan.com
Subject: Thu Nghiem
Day is the content of e-mai thu nghiem.


After g & otilde; You have saved the file in a new folder. After Just copy or move the file in the Pickup folder where SMTP was set (default directory path will be & quot; root: InetpubmailrootPickup & quot;). SMTP Service will periodically check in the Pickup folder. This will allow us to transfer any of the messages we have seen in the directory. After Please check your email inbox for the correct e-mail address. is sent to. Detailed information about m & e; Describe the format of the e-mail message in RFC 822, Refer to the address http://msdn.microsoft.com/library/psdk/cdosys/cdosys_the_rfc_822_mes sage_format.htm

Check with CDO

A check to check the SMTP service. write a VBScript c Use Windows 2000's Collaboration Data Objects.

CDO in Windows 2000 (l & agr; CDO 2.0 or Cdosys.dll) l & agrave; An add-on has been designed to simplify the task of defragmentation. the creation or manipulation of the Internet. Replace & nbsp; have to write a paragraph m & atilde; In order to transmit SMTP messages, the person responsible for transmitting the SMTP message, Can use CDO to send. Get a free account. Use the SMTP protocol as well as the local Pickup directory. & Ldquo; VBScript v. CDO example It is possible to send a sms through the SMTP service:

set msg = WScript.CreateObject (& quot; CDO.Message & quot;)
msg.From = & quot; TenNguoiGui@TenMienNguoiGui.com"
msg.To = & quot; TenNguoiNhan@TenMienNguoiNhan.com"
msg.Subject = & quot; Recording & quot;
msg.TextBody = "Day is the content of the e-mai."
msg.Configuration.Fields (& quot; http: //schemas.microsoft.com/cdo/
configuration / smtpserver & quot;) = & quot; smtpserver.TenMienNguoiGui.com & quot;
msg.Configuration.Fields (& quot; http: //schemas.microsoft.com/cdo/
configuration / sendusing & quot;) = 2
msg.Configuration.Fields.Update
msg.Send

& bull; First & foremost in the & mdash; & nbsp; The instance creates the CDO object. Indicates the information needed for a particular event.
& bull; Two & dquo; Next, use the CDO Configuration object to set up the CDO Configuration object. The value of the field is the same for each of the configuration settings. Each field consists of two parts: a prefix Namespace (like & quot; http: //schemas.microsoft.com/cdo/configuration/") v & agrave; a local (like & quot; smtpserver & quot;).
& bull; The mechanism is based on the World Wide Web Consortium (W3C) W3C World Wide Web Consortium (W3C) specifications in the XML Recommendation (http://www.w3c.org/TR/REC-xml-names/) v & agrave; is used primarily to provide similarity. This is consistent with the fact that the CDO is part of the CD & DVD catalog.
& bull; The & quot; smtpserver & quot; Indicates the domain (or IP address) of the SMTP Server, while the & quot; sendusing & quot; only r & otilde; Send a message Use the local SMTP service Drop folder, or to an SMTP server directly over the network. The last field is a space. The value is 2, & yacute; I sent the SMTP Server specified to the network.
& bull; Two & dquo; Finally, update your configuration settings. start transferring the file.

The methodology used in this article is the CDO manual. probably complex to c Can test the SMTP service. However, Script n is apparently responsible for some system administration tasks. V For example, Script n & It can be used in the Performance Logs and Alerts program for your e-mail account when you count your system. overstate The distance of the specified distance.

I & # 39; ve also found that you & # 39; You can use C #, VB.NET, and VB.NET. ASP.NET in the .NET Framework to design Windows® or Web applications to send mail using the & agility; service; It is available in English and French. In fact, C & rrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrr! atilde Use & Use. By the way, The problem is that the SMTP service is so efficient that it can send and receive e-mails. When running the program, only the & gn; Some parameters are needed such as the title of the message, the content of the message (together for all the letters) and the message. just a click away. About 30 letters were created. Transfer an automatic c. What's inside? Learn & practice & nbsp; file & nbsp; & nbsp; & nbsp; & nbsp; & nbsp; & nbsp; & nbsp; & nbsp; to be The file specified by m & atilde; The province is stored in a database with the sender's address. receiver.

Recognize the sending of defects

If an e-mail message is not sent to your e-mail address, a l By the way, (e.g., a person or a wrong e-mail address); n & oacute; will be transferred to the Badmail folder. By default, The contents of the Badmail folder should look like this: & quot; Root: InetpubmailrootBadmail & quot ;. We & # 39; re checking the content of the rejected e-mail. I & # 39; ve made a specific mistake. Please correct any errors. if c can resubmit again with one of the mails sent. Describe in more detail.
In my Badmail folder, an e-mail message is also sent. Can be stored in the Queue folder with a predetermined time cycle. C & I & # 39; ve set up & Can be adjusted by adjusting the & quot; outbound retry intervals & quot; in the & ldquo; Delivery & rdquo; of the dialog box & ldquo; Default SMTP Virtual Server Properties & rdquo ;. If a short message is not sent immediately, The network connection is busy or stopped, the message is stored in the Queue folder. are returned at predefined intervals. If SMTP quit after the upload, please send me the following: At the bottom of the wizard will be moved to the Badmail folder.

Conclude

The SMTP service is provided in the & ldquo; Internet Information Services & rdquo; of Windows 2000 (both Windows XP & Windows Server 2003) l & agrave; A simple, but easy to use, You can transfer your e-mail messages to an effective e- economy. N & oacute; save for agrave; System administrators from having to set up a complex mail system to transmit Internet e-mail messages to a reliable network. When used with CDO for Windows 2000, design Can send and receive e-mail through SMTP. You need to write a lot of m & atilde; program

Ho Chi Minh City
(TTVTQT KV-1)