I've tried sending html/JS code as an email body. Ideally, any naive web client/browser would read it along with the other HTML/JS in the page and execute it.
But I believe yahoomail, gmail and other popular mail clients take care of this possibility.
Experience: I had experimented sending an alert box from within the email body. But I am just able to see the text.
As a developer, I was wondering what elements help the client to identify these HTML/JS code different from the other normal ones in the page. I believe there has to be some security element associated with it. Are there some articles around which explain these effects in detail?