It is important to realize that an email is simply straight text following a specific format.
A very good place to start is here:
E-mail Message format[
^]
After understanding how to create an email, you have to figure out how to connect to an email server and upload it.
This, I believe, is called "homework".