Search
 
SCRIPT & CODE EXAMPLE
 

JAVA

java mail use tls 1.2

// add this line mail.smtp.ssl.protocols=TLSv1.2; in properties
// in your Mail Implementation class
props.put("mail.smtp.starttls.enable","true");
props.put("mail.smtp.ssl.protocols","TLSv1.2");

//TO be more specific


Properties prop = new Properties();
prop.setProperty("mail.smtp.auth", "true");
prop.setProperty("mail.smtp.starttls.enable", "true");
prop.setProperty("mail.smtp.ssl.protocols", "TLSv1.2"); // New Line
prop.setProperty("mail.smtp.ssl.trust", mailUri.getHost());
mailSender.setJavaMailProperties(prop);

Comment

PREVIOUS NEXT
Code Example
Java :: how to change tablayout current view position in android 
Java :: flink prometheus alert on failed jobs 
Java :: how to reverse a number in java 
Java :: java throw an exception 
Java :: insertion sort in java 
Java :: java list select field 
Java :: Java Sorting Using sort() 
Java :: java vector push_back 
Java :: android dialog box example 
Java :: error: package android.support.v7.app does not exist 
Java :: how to count the number of occurrences of an element in a arraylist in java 
Java :: calculate number of years months and days between two dates in java 
Java :: linear search algorithm java 
Java :: Java alt + f4 
Java :: math.min java 
Java :: H2 enabling remote database creation first 
Java :: Java do...while loop 
Java :: java rename file 
Java :: set text from strings.xml 
Java :: java_remove last char 
Java :: integer to binary java 
Java :: string.indexof java 
Java :: how to add a listener to a toggle group radio buttons javafx 
Java :: android studio copy file 
Java :: adjust font scale in android studio 
Java :: local date to date java 
Java :: Java The Throw/Throws Keyword 
Java :: exception in thread "main" java.lang.unsupportedclassversionerror: has been compiled by a more recent version of the java runtime (class file version 55.0), this version of the java runtime only recognizes class file versions up to 52.0 
Java :: spiral traversal of matrix leetcode 
Java :: abstract method declaration 
ADD CONTENT
Topic
Content
Source link
Name
9+4 =