title: how to solve com.sun.mail.smtp.SMTPSendFailedException in java ?
body: <p>I am creating a application in which i am sending mail to users.</p>
  
  <p>But the problem is while i am using Transport.send(msg) method, it displays the following error:</p>
  
  <pre><code>com.sun.mail.smtp.SMTPSendFailedException: 530-5.5.1 Authentication Required.
  </code></pre>
  
  <p>I am using the following properties to send mail.</p>
  
  <pre><code>        props.put("mail.transport.protocol", "smtp");
          props.put("mail.host", smtpHostName);
          props.put("mail.user", smtpUser);
          props.put("mail.password", smtpPass);
          props.put("mail.smtp.auth", smtpAuth == 1 ? true : false);
          props.put("mail.port", smtpPort);
          props.put("mail.smtp.starttls.enable", smtpTLS == 1 ? true : false);
  </code></pre>
  
  <p>Please help me to resolve this problem.</p>