1 00:00:05,120 --> 00:00:08,460 Sending emails with a SMTP protocol. 2 00:00:08,480 --> 00:00:09,280 Hello, everyone. 3 00:00:09,290 --> 00:00:16,790 Today, I want to talk specifically about the asymptotic protocol and explain in what is basically used 4 00:00:16,970 --> 00:00:21,500 as a part of sending emails from the receiver to the sender. 5 00:00:21,830 --> 00:00:30,830 So the Assante protocol is in general use in order to transmit messages from the origin or which is 6 00:00:30,830 --> 00:00:34,760 the sender to the destination, which usually is the receiver. 7 00:00:35,030 --> 00:00:40,430 And it is basically used to transmit messages to the mail services. 8 00:00:40,730 --> 00:00:46,100 So what would usually happen is that you would send your message to the mail service and from the mail 9 00:00:46,100 --> 00:00:49,310 service, it is going to be transmitted to the sender. 10 00:00:50,000 --> 00:00:58,520 Also the A.S.A.P. Protocol USB Port 25 in order to send interest me this email messages. 11 00:00:58,730 --> 00:01:04,910 But about this later, as you're going to see specifically what port types who are using when using 12 00:01:04,910 --> 00:01:06,690 the same type protocol. 13 00:01:06,890 --> 00:01:13,160 So what would usually happen is that the connection between the client and the server is first going 14 00:01:13,160 --> 00:01:14,120 to be established. 15 00:01:14,390 --> 00:01:22,220 And the first message or the starting message is going to be send it to the server and the connection 16 00:01:22,220 --> 00:01:23,730 will be started through the port. 17 00:01:23,750 --> 00:01:24,530 Twenty five. 18 00:01:24,620 --> 00:01:28,170 The server then would accept the connection or reject it. 19 00:01:28,190 --> 00:01:36,670 But in most of the cases, separate if everything's OK and it will send back the Esswein acknowledged 20 00:01:36,690 --> 00:01:40,910 message or it will basically say, OK, your message has been received by me. 21 00:01:41,270 --> 00:01:44,330 So you can see this action on the picture here. 22 00:01:44,570 --> 00:01:46,770 And this is a client and this is a server. 23 00:01:47,000 --> 00:01:54,560 So as you can see, firstly, um, the s why end messages, send it to the server and then the server 24 00:01:54,560 --> 00:01:59,170 since the acknowledged message back to our client. 25 00:02:00,320 --> 00:02:02,630 So here it comes, the interesting part. 26 00:02:02,900 --> 00:02:10,760 And here again from the server, we were sending a message with identifier two hundred and twenty. 27 00:02:11,660 --> 00:02:18,020 And this means that the server is ready to carry the transmission of the messages that are provided 28 00:02:18,020 --> 00:02:18,920 from the client. 29 00:02:19,700 --> 00:02:28,310 So after that, the client can finally provide the message that, for example, says hello here and 30 00:02:28,310 --> 00:02:33,450 hello means that, um, we are ready to read the message. 31 00:02:33,590 --> 00:02:40,280 And finally, um, when we reach the final stage, this means we're absolutely ready for the server 32 00:02:40,370 --> 00:02:40,970 connection. 33 00:02:41,180 --> 00:02:47,580 So this is basically how the messages between the client and the server are exchanged with the port. 34 00:02:47,600 --> 00:02:48,410 Twenty five. 35 00:02:48,410 --> 00:02:51,560 And obviously we're going to take that later. 36 00:02:51,740 --> 00:03:00,920 So please save this chart in your mind, because this is in a very simple way, um, the normal practice 37 00:03:00,920 --> 00:03:05,570 for exchanging messages between your computer yourself and the server. 38 00:03:05,990 --> 00:03:11,930 And no matter what you add it into, just making sure there are pictures or attachments and so on. 39 00:03:12,170 --> 00:03:17,780 The protocol and the way that the messages are going to be exchanged between the client and the server 40 00:03:17,930 --> 00:03:19,440 are all going to be the same. 41 00:03:19,760 --> 00:03:25,310 So that said, guys, thanks for watching this video for the SMTP protocol. 42 00:03:25,310 --> 00:03:33,080 And in the next one, I am going to talk specifically about the SMTP library with which we are going 43 00:03:33,080 --> 00:03:35,870 to actually start writing our code. 44 00:03:36,260 --> 00:03:37,280 Thanks for watching.