Now that we have created a plaintext email, let's learn how to create.
My message and I still you will use the very same clothing that the message and inside here you will
add your taste annual ad through through means you will you are passing a cell Alcalde false means you
are passing plaintext.
Now, since we did right through here, let's all the comments we can.
This time, I'll call it here and two additional code we have to get as general code to begin with.
So go here like Stand STEM Online Code Editor, and you can use this one or this one.
W3 School of Online Code Editor.
This one.
So if you want to use this one.
As you can see, this is the online editor for this website.
You can write your text and.
Right here and see it here, see what's happening here.
So did this text, you find it in the heading.
This is the headings you call out your name and click run and will be visible here.
Same for other things.
Or you can simply try this one.
You can start writing Hello world.
PSP 32.
Email this thing and you can simply copy the code.
This is that simple code for this line.
You can add other information you can.
Line the Turks to be in the middle, you can increase the font size or change the font color.
You can choose different formats if you want to make it as heading as you can see.
This more the background color, and let's cut off from the text itself.
Now you can copy all of this and simply paste it inside your code, right click and copy, then go inside
your code.
Base it right here.
As you can see, this is our national cold.
Now.
You can use this or you can use that old text, it's up to you.
In my case, I will start with robotics.
Then we can test with a stem cell.
Now let's move on with cord editing now, the final step is sitting the recipient's email address.
So like a simple TB data, the add recipient.
And inside its right email, Rudy said beyond.
That's it now that we have said all the details of this and TB data, we are ready to send the email.
So to send the email, you need to write if.
Statement and inside that if you need to drive this man client to send email, we are using the send
email function and we are passing this empty B data that you already filled here and these lines.
Now.
After that, we can't print Syria, not print alone.
If there is an error, we can see error.
And sending the email, and we can give the records from the mail flying, you kind of like man client
dot TBE error reason.
And.
This is how you can give that email address.
It will most likely print out a code that you can look up using Google to know exactly what's the problem.
After sending the email, you can clear all the data from this empty be that object.
And we can do this using one simple line, which is a simple TB that are just empty.
The empty function is the one that we can use to send empty emails.
Now we are sending the email and the staff function.
This means that the email will be sent once and you have to pause to unplug, then plug it again.
They ask people to send other e-mail.
If you want to send the email more than once, you can simply use this method to send e-mail methode
inside the loop function.
Now our example the loop function is empty.
Now, we can't start this thing this cold out, but we can add even more stuff in the loop function.
Now you can create a callback function to give the email sending status.
To do that, that is a very.
Easy method, you can simply define a callback function like void.
Let me show it to you.
Let's create a new function and name it St. Paul, but.
Now.
The callback function will have a symbol called we are going to write on the serial monitor print alone.
And here we are going to write that message and for.
And we need to pass the message here.
Send status
message.
Now, when the city's message is sent, we call out an if a statement, this if statement will include
the message as success and sending.
Then we need to write, I think, for the bugging inside.
Okay.
We can't hide the signs.
This means that the message was sent successfully.
Otherwise, the message will we will get a code of honest, empty, be at what reason poured on our
serial monitor.
Now this is how you can get a callback function to give the email sending status.
Sorry.
Now that's it, what you need to do next is very simple.
You need to verify the code to make sure that it doesn't have any errors.
Then we will upload the code to our ISP board.
It will take a few seconds to compile the code.
OK.
As you can see here, have an error, some TV server port was not defined in this school.
Let's make sure that we have.
That I assume to be said over the past.
Well, we have spilling some type.
Let's go back and fix it.
As A.B. said, what pushed?
OK.
That's right.
Now, let me also add my e-mail passwords here.
Now let's combine it.
OK, now done, combining the next step is uploading the code to our yes people and see if the email
is sent or not.
Now we will do this and the next lesson, but that's it for this lesson.
If you have any question, please ask in the Q&A about this is Ashraf from educational engineering team.