title: sending mail to any website using java servlet
body: <p>I am using javamail api in java servlet to send mail. It seams to send mail only to gmail Id's, whereas I want it to be able to send to any email ID. Do I require different property value here? I followed <a href="http://www.mkyong.com/java/javamail-api-sending-email-via-gmail-smtp-example/" rel="nofollow">http://www.mkyong.com/java/javamail-api-sending-email-via-gmail-smtp-example/</a> to develop the code. The property values are:</p>
  
  <p>props.setProperty("mail.smtp.host", "smtp.gmail.com");</p>
  
  <p>props.setProperty("mail.smtp.port", "587");</p>
  
  <p>props.setProperty("mail.smtp.auth", "true");</p>
  
  <p>props.setProperty("mail.smtp.starttls.enable", "true");</p>