Sending emails with a SMTP protocol.
Hello, everyone.
Today, I want to talk specifically about the asymptotic protocol and explain in what is basically used
as a part of sending emails from the receiver to the sender.
So the Assante protocol is in general use in order to transmit messages from the origin or which is
the sender to the destination, which usually is the receiver.
And it is basically used to transmit messages to the mail services.
So what would usually happen is that you would send your message to the mail service and from the mail
service, it is going to be transmitted to the sender.
Also the A.S.A.P. Protocol USB Port 25 in order to send interest me this email messages.
But about this later, as you're going to see specifically what port types who are using when using
the same type protocol.
So what would usually happen is that the connection between the client and the server is first going
to be established.
And the first message or the starting message is going to be send it to the server and the connection
will be started through the port.
Twenty five.
The server then would accept the connection or reject it.
But in most of the cases, separate if everything's OK and it will send back the Esswein acknowledged
message or it will basically say, OK, your message has been received by me.
So you can see this action on the picture here.
And this is a client and this is a server.
So as you can see, firstly, um, the s why end messages, send it to the server and then the server
since the acknowledged message back to our client.
So here it comes, the interesting part.
And here again from the server, we were sending a message with identifier two hundred and twenty.
And this means that the server is ready to carry the transmission of the messages that are provided
from the client.
So after that, the client can finally provide the message that, for example, says hello here and
hello means that, um, we are ready to read the message.
And finally, um, when we reach the final stage, this means we're absolutely ready for the server
connection.
So this is basically how the messages between the client and the server are exchanged with the port.
Twenty five.
And obviously we're going to take that later.
So please save this chart in your mind, because this is in a very simple way, um, the normal practice
for exchanging messages between your computer yourself and the server.
And no matter what you add it into, just making sure there are pictures or attachments and so on.
The protocol and the way that the messages are going to be exchanged between the client and the server
are all going to be the same.
So that said, guys, thanks for watching this video for the SMTP protocol.
And in the next one, I am going to talk specifically about the SMTP library with which we are going
to actually start writing our code.
Thanks for watching.