March 27, 200916 yr Author Hmmm ... having searched I can see the STARTTSL is to do with secure sockets. Sure enough my Mac Mail settings confirm I am using Port25 and Use SSL with Password authentication. Is it possible to use the Scriptmaster function with SSL - if so how? Now I'm really out of my depth.
January 10, 201016 yr I had the same problem when trying to send through GMAIL. I added this line of code and it worked: props.put("mail.smtp.starttls.enable","true"); Edited January 10, 201016 yr by Guest
April 5, 201015 yr Hi, I'm working on figuring this same issue out, and no luck with the above line of code, or at least I might not be inserting it at the correct spot. Does anyone have this working with Gmail?
February 4, 201411 yr SOLUTION: Transport transport = Session.getDefaultInstance(props).getTransport("smtps"); NOT: Transport transport = Session.getDefaultInstance(props).getTransport("smtp"); For gMail SMTP it is SMTPS Works great.
Create an account or sign in to comment