Java org.springframework.mail.javamail JavaMailSenderImpl fields, constructors, methods, implement or subclass

Example usage for Java org.springframework.mail.javamail JavaMailSenderImpl fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for org.springframework.mail.javamail JavaMailSenderImpl.

The text is from its open source code.

Subclass

org.springframework.mail.javamail.JavaMailSenderImpl has subclasses.
Click this link to see all its subclasses.

Field

StringDEFAULT_PROTOCOL
The default protocol: 'smtp'.
intDEFAULT_PORT
The default port: -1.

Constructor

JavaMailSenderImpl()
Create a new instance of the JavaMailSenderImpl class.

Method

MimeMessagecreateMimeMessage()
This implementation creates a SmartMimeMessage, holding the specified default encoding and default FileTypeMap.
StringgetDefaultEncoding()
Return the default encoding for MimeMessage MimeMessages , or null if none.
StringgetHost()
Return the mail server host.
PropertiesgetJavaMailProperties()
Allow Map access to the JavaMail properties of this sender, with the option to add or override specific entries.
intgetPort()
Return the mail server port.
StringgetProtocol()
Return the mail protocol.
SessiongetSession()
Return the JavaMail Session , lazily initializing it if hasn't been specified explicitly.
StringgetUsername()
Return the username for the account at the mail host.
voidsend(SimpleMailMessage simpleMessage)
voidsend(SimpleMailMessage... simpleMessages)
voidsend(MimeMessage mimeMessage)
voidsend(MimeMessage... mimeMessages)
voidsend(MimeMessagePreparator mimeMessagePreparator)
voidsend(MimeMessagePreparator... mimeMessagePreparators)
voidsetDefaultEncoding(@Nullable String defaultEncoding)
Set the default encoding to use for MimeMessage MimeMessages created by this instance.
voidsetHost(@Nullable String host)
Set the mail server host, typically an SMTP host.
voidsetJavaMailProperties(Properties javaMailProperties)
Set JavaMail properties for the Session .
voidsetPassword(@Nullable String password)
Set the password for the account at the mail host, if any.
voidsetPort(int port)
Set the mail server port.
voidsetProtocol(@Nullable String protocol)
Set the mail protocol.
voidsetSession(Session session)
Set the JavaMail Session , possibly pulled from JNDI.
voidsetUsername(@Nullable String username)
Set the username for the account at the mail host, if any.