title: android.os.NetworkOnMainThreadException sending an email from Android
body: <p>I have written an application which sends email from an Android device, but I get the following exception when I try to send an email:</p>
  <p><code>android.os.NetworkOnMainThreadException</code></p>
  <p>Why is this occurring and how can I fix it?</p>