Hello everyone, I am Pisces Lin. This is my graduation project two years ago. The topic is the design of a mail system based on winsock. I am now releasing the source program of this system to everyone for free. Friends who need information in this area can do it. Download it and study it! The C language network programming technology used by the system implements the application layer protocol command processing of SMTP and POP3, and uses PHP web pages to send and receive emails.
(1) The SMTP server must implement basic protocol commands, including the following commands: HELO, MAIL FROM, RCPT TO, DATA, REST, NOOP, QUIT and HELP.
(2) The POP3 server must implement basic protocol commands, including the following commands: USER, PASS, DELE, LIST LOOP, RETR, RSET, STAT, UIDL and QUIT.
(3) The PHP Web mail sending and receiving client is responsible for communicating with the two mail servers using the mail protocol commands implemented above.
The email sending protocol SMTP and the email receiving protocol POP3 are currently commonly used protocols in email systems. As the application layer in the TCP/IP four-layer model, it defines its own standard protocol commands so that all email systems follow unified instructions. Standard implementation, precisely because of this, enables various systems to exchange information without errors.
This system was developed under the current background that email communication is very popular. It uses C language to write the email server and PHP to write the client. It makes use of network programming technology and Windows multi-threading technology. The purpose is to enable users to use it in a timely manner. Conveniently exchange information.
Keywords: Winsock mail server, PHP WebMail client
Expand