In email marketing, viral marketing works by crafting engaging and shareable content that prompts recipients to forward the email to their contacts. This can be achieved through several strategies, such as including incentives for sharing, making the content highly relevant and valuable, or incorporating social sharing buttons directly in the email.