title: How do you send emails in android from any email address?
body: <p>Hi I was following the answer to this question:</p>
  
  <p><a href="https://stackoverflow.com/questions/2020088/sending-email-in-android-using-javamail-api-without-using-the-default-android-ap/2033124#2033124">Sending Email in Android using JavaMail API without using the default/built-in app</a>
  but setting the sender in the method sendMail does not work. </p>
  
  <p>I would like to be able to send mail from different addresses such as <code>support@example.com</code>, <code>sales@example.com</code>, etc... so that way when people reply to the emails they go to the correct addresses.</p>
  
  <p>Edit: By does not work I mean whenever I get an email it is always from the account that you sign into using: </p>
  
  <p><code>GMailSender sender = new GMailSender("username@gmail.com", "password");</code></p>
  
  <p>and not the sender field that you fill out in the sendMail method:  </p>
  
  <pre><code>sender.sendMail("This is Subject",   
                          "This is Body",   
                          "sender@gmail.com",   
                          "recipiant@yahoo.com");   
  </code></pre>