There are three main classes:
1. smtpmail
Smtpmail. Send (mailmessage );
2. mailmessage
Attribute: From to subject priority (priority high, low, normal) attachments bcc (dark sending Address) CC (CC address) Body (Mail content) bodyformat (Mail format) bodyencoding (base64, uuencode)
3. mailattachment
Set SMTP server in IIS
Use SOCKET to implement the email system
POP3. 110
SMTP 25
Common commands:
Send: mailfrom rcpto data
Receive mail: Stat (query new mail) Return (View content) Delete
When I was interviewed, I was asked a question about the mass mailing. At every night, the mass mailing was realized.
TCP communication:
System. net. Socket
Tcpclient (client class, which communicates with the service through the TCP protocol and obtains information, and encapsulates the socket class internally) tcplistener (server class, which listens to requests sent from the client)