How to use 163's SMTP service to send mail?

1 The difference between POP3 and IMAP

      The POP3 protocol allows e-mail clients to download mails on the server, but operations on the client (such as moving mails, marking as read, etc.) will not be fed back to the server. For example, the client receives 3 mails in the mailbox and moves them. To other folders, these mails on the mailbox server are not moved at the same time.

      IMAP provides two-way communication between webmail and e-mail clients. The operations of the client will be fed back to the server. For operations performed on the mail, the mail on the server will also take corresponding actions.

      At the same time, IMAP provides a convenient mail download service like POP3 , allowing users to read offline. The summary browsing function provided by IMAP allows you to decide whether to download or not until you have read all the information such as the arrival time, subject, sender, and size of the email. In addition, IMAP  better supports access to new mail from multiple different devices at any time.

      Summary: Both POP3 and IMAP provide mail download services, but there is no difference in synchronization with the server.


2 Introduction to SMTP

    SMTP is the protagonist of this article.

     The full name of SMTP is "Simple Mail Transfer Protocol", that is, Simple Mail Transfer Protocol. It is a set of specifications used to transfer mail from the source address to the destination address, and it is used to control the way of mail transfer. The SMTP protocol belongs to the TCP/IP protocol suite, which helps each computer find the next destination when sending or transferring letters. The SMTP server is an outgoing mail server that follows the SMTP protocol. 

    Okay, enough to understand this paragraph, let's talk about dry goods.

    Netease 163 free mailbox related server information: note that the port number is divided into two types : SSL protocol and non-SSL protocol

    POP3, SMTP, IMAP address set by 163 free mail client


3 How to set 163 mailbox

    The first step is to log in to the 163 mailbox, click on settings, and select POP3/SMTP/IMAP

 

 

    The second step is to choose to enable the POP3/SMTP service. There is no need to choose to enable the IMAP/SMTP service. In fact, they are all the same. POP3/SMTP is enough.

 

I have opened here, will not repeat opened, step down step by step on the line, will show the authorization code after sending the message, remember this authorization code, this is a substitute for your email password in the mail when you write code , which It is 163 for safety reasons.

 


4 Use kettle for verification

Next, we use the kettle tool to test whether the email can be sent normally.

 

 

Create a new job, drag START in, then drag the send mail component in, and then connect.

Here comes the key, the key is configuration

 

Finally, execute the job and you can successfully send the mail.

Finally, if the code is the same, the key is that the parameters in the above figure are configured correctly.

Guess you like

Origin blog.csdn.net/liuyuinsdu/article/details/113878840