I am using Java mail api and hmailserver to send outbound emails from my localhost. I am using the SMTP relayer outbound.att.net
with my username and password for authentication. When I run my program and check the logs I have the line:
"RECEIVED: 530 5.7.0 Must issue a STARTTLS command first"
I am confused considering I set up my mail properties to include the STARTTLS command:
Properties props = System.getProperties();
props.put("mail.smtp.host", host);
props.put("mail.smtp.user", from);
props.put("mail.smtp.password", pass);
props.put("mail.smtp.port", "25");
props.put("mail.smtp.auth", "true");
props.put("mail.smtp.starttls.enable", "true");
Does anyone have an idea of what I may be doing incorrectly?