I have just read a small guide to sending emails with false From statements
it instructs to telnet at port 25
then use the commands HELO, MAIL FROM:, RCTP TO:, DATA, .

what exactly is this doing?

Is it legal?