title: how to send an email using Godaddy webmail in Springboot aplication
body: <p>When can successfully send email using Gmail but when I use Godaddy webmail I get the following:</p>
  
  <pre><code>Failed message 1: javax.mail.MessagingException: Could not connect to SMTP 
  host: smtpout.asia.secureserver.net, port: 465, response: -1] with root 
  cause
  javax.mail.MessagingException: Could not connect to SMTP host: 
  smtpout.asia.secureserver.net, port: 465, response: -1
  at com.sun.mail.smtp.SMTPTransport.openServer(SMTPTransport.java:2106) ~
  [javax.mail-1.5.6.jar:1.5.6]
  at com.sun.mail.smtp.SMTPTransport.protocolConnect(SMTPTransport.java:712) ~
  [javax.mail-1.5.6.jar:1.5.6]
  at javax.mail.Service.connect(Service.java:366) ~[javax.mail-
  1.5.6.jar:1.5.6]
  </code></pre>
  
  <p>Here is my properties file</p>
  
  <pre><code>spring.mail.host =  smtpout.asia.secureserver.net
  spring.mail.username=  xyz@domian.com
  spring.mail.password= ******
  
  spring.mail.properties.mail.transport.protocol=smtp
  
  spring.mail.properties.mail.smtp.port=465
  spring.mail.properties.mail.smtp.auth=true
  spring.mail.properties.mail.smtp.timeout=60000
  spring.mail.properties.mail.imap.ssl.enable=true
  spring.mail.properties.mail.imap.ssl.trust=*
  </code></pre>
  
  <p>Here is My code</p>
  
  <pre><code>//SendMail using java Mail API
  @Autowired
  JavaMailSender mailSender;
  
  public String send(String to, String Subject, String Password) throws 
  MessagingException{
  
      MimeMessage message = mailSender.createMimeMessage();
      MimeMessageHelper helper;
  
      helper = new MimeMessageHelper(message, true);
  
      helper.setSubject(Subject);
      helper.setTo(to);
      helper.setText("Your password is:"+Password);
      mailSender.send(message);
      return "false";
  }
  </code></pre>