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

前端 未结 6 2013
傲寒
傲寒 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

    try this:

    turn on: Allow less secure apps for your gmail account

    https://myaccount.google.com/lesssecureapps

提交回复
热议问题