title: Javamail Transport.send(message) dosn't work in android using kotlin
body: <p>I want to send an email to a user, i have followed many tutorials, and i did what they did, but, when i want to execute Transport.send(message) the program stops on this line,</p>
  <pre><code>    suspend fun sendEmail()   {
    
      try {
          val props = Properties()
          props.put(&quot;mail.smtp.host&quot;, &quot;smtp.gmail.com&quot;);
          props.put(&quot;mail.smtp.socketFactory.port&quot;, &quot;465&quot;);
          props.put(&quot;mail.smtp.socketFactory.class&quot;, &quot;javax.net.ssl.SSLSocketFactory&quot;);
          props.put(&quot;mail.smtp.auth&quot;, &quot;true&quot;);
          props.put(&quot;mail.smtp.port&quot;, &quot;465&quot;);
  
          Log.d(TAG, &quot;sendEmail: one&quot;)
          val session = Session.getInstance(props, object : Authenticator() {
              override fun getPasswordAuthentication(): PasswordAuthentication {
                  return PasswordAuthentication(&quot;my email &quot;, &quot;my password&quot;)
              }
          })
          val mm = MimeMessage(session)
          mm.setFrom(InternetAddress(&quot;my email&quot;))
          mm.addRecipient(Message.RecipientType.TO, InternetAddress(&quot;recipient email&quot;))
          mm.subject = &quot;subject&quot;
          mm.setText(&quot;hi how are you&quot;)
          Log.d(TAG, &quot;sendEmail: two&quot;)
          Transport.send(mm)
          Log.d(TAG, &quot;sendEmail: three&quot;)
          
          
  
  
      }catch (e: MessagingException){
          Log.d(TAG, &quot;sendEmail: ${e.message}&quot;)
         throw Exception(e.message)
          
      }
  
  }
  </code></pre>
  <p>i can log one and two but three won't show, also i can't log what is inside the exception catch</p>
  <p>any solution ?</p>