Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

JavaMail starttls settings

845358Mar 7 2011 — edited Mar 7 2011
Hi!

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?
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Apr 4 2011
Added on Mar 7 2011
2 comments
545 views