JavaMail starttls settings
845358Mar 7 2011 — edited Mar 7 2011Hi!
Our company just purchased a domain with an e-mail account for sending email from our website. (No spam, I promise. :)
For testing purposes, I downloaded Thunderbird and pointed it at our domain. When I did so, it "whirred" a bit finding the proper settings and I was immediately able to send e-mails through this account using Thunderbird. (Yeah, Thunderbird!)
So I come back to the web application that I'm writing and I can't for the life of me figure out how to configure java mail to send e-mails through this account. Here is everything that's in the Thunderbird setup:
Port: 587
Security and Authentication
Connection security: STARTTLS
Authentication method: Encrypted password
User Name: xxxx
Here's the properties I've set so far for java mail:
Properties props = new Properties();
props.put("mail.smtp.auth", true);
props.put("mail.smtps.starttls.enable", true);
props.put("mail.smtps.debug", true);
Can someone help me here, please?