Must issue a STARTTLS command first. Sending email with Java and Google Apps

前端 未结 6 2049
傲寒
傲寒 2020-11-30 05:56

I am trying to use Bill the Lizard\'s code to send an email using Google Apps. I am getting this error:

Exception in thread \"main\" javax.mail.SendFailedEx         


        
6条回答
  •  孤街浪徒
    2020-11-30 06:25

    It is the version of java mail API. I was facing this issue and I just updated the java mail API to 1.4.3 It works fine for me!

    Thanks!

提交回复
热议问题