spring-framework / org.springframework.mail.javamail / JavaMailSenderImpl / setDefaultEncoding

setDefaultEncoding

open fun setDefaultEncoding(@Nullable defaultEncoding: String): Unit

Set the default encoding to use for MimeMessage created by this instance.

Such an encoding will be auto-detected by MimeMessageHelper.