So, you're a developer testing lots of codes and you want to ensure that you don't accidentally send out email to people during testing.
However, you also want to actually view emails in a real email client, not a console.
This is how you can do it using Ubuntu and Exim ensuring that the email gets sent out through Google apps.