How can your email contain viruses?

When an email virus first sends itself out, opening the attachment in the email makes the virus send itself out to your address book and damage your computer.