Is it a solution make a program to control the mail port?

Well, I have to learn the mail headers..

So?