Digitalbrit Posted March 27, 2009 Author Posted March 27, 2009 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.
jasonwood Posted January 10, 2010 Posted January 10, 2010 (edited) 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, 2010 by Guest
Bob Schwenkler Posted April 5, 2010 Posted April 5, 2010 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?
neocodesoftware Posted February 4, 2014 Posted February 4, 2014 SOLUTION: Transport transport = Session.getDefaultInstance(props).getTransport("smtps"); NOT: Transport transport = Session.getDefaultInstance(props).getTransport("smtp"); For gMail SMTP it is SMTPS Works great. 1
Recommended Posts
This topic is 3957 days old. Please don't post here. Open a new topic instead.
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now