Class Mailer
java.lang.Object
org.nuxeo.ecm.automation.core.mail.Mailer
Deprecated.
- Author:
- Bogdan Stefanescu
-
Nested Class Summary
-
Field Summary
Modifier and TypeFieldDescriptionprotected javax.mail.Authenticator
Deprecated.since 11.1, not used anymoreprotected Properties
Deprecated.protected javax.mail.Session
Deprecated.protected final String
Deprecated.The JNDI session name. -
Constructor Summary
ConstructorDescriptionMailer()
Deprecated.since 11.1, use other constructors insteadDeprecated.Create a mailer using a session that lookup for the session in JNDI under the given session name.Mailer
(String sessionName, Properties config) Deprecated.Create a mailer using a session that lookup for the session in JNDI under the given session name.Mailer
(Properties config) Deprecated.Create a mailer that use the given properties to configure the session. -
Method Summary
Modifier and TypeMethodDescriptionDeprecated.javax.mail.Session
Deprecated.void
Deprecated.Deprecated.void
send
(javax.mail.internet.MimeMessage message) Deprecated.void
Deprecated.Send a single email.void
setAuthenticator
(javax.mail.Authenticator auth) Deprecated.since 11.1, this method does nothing, usemail.${protocol}.user
andmail.${protocol}.password
insteadvoid
setConfiguration
(Properties config) Deprecated.void
setCredentials
(String user, String pass) Deprecated.since 11.1, usemail.${protocol}.user
andmail.${protocol}.password
insteadvoid
setDebug
(boolean debug) Deprecated.void
Deprecated.void
Deprecated.void
Deprecated.Set the SMTP server address to usevoid
Deprecated.
-
Field Details
-
config
Deprecated. -
session
protected volatile javax.mail.Session sessionDeprecated. -
auth
Deprecated.since 11.1, not used anymore -
sessionName
Deprecated.The JNDI session name. If not null JNDI will be used to lookup the default session, otherwise local configuration (throughconfig
) will be used to create a session.
-
-
Constructor Details
-
Mailer
Deprecated.since 11.1, use other constructors insteadCreate a mailer that can be configured using the API. -
Mailer
Deprecated.Create a mailer that use the given properties to configure the session. -
Mailer
Deprecated.Create a mailer using a session that lookup for the session in JNDI under the given session name. -
Mailer
Deprecated.Create a mailer using a session that lookup for the session in JNDI under the given session name. If the JNDI binding doesn't exists use the given properties to cinfiugure the session.
-
-
Method Details
-
setServer
Deprecated. -
setServer
Deprecated. -
setServer
Deprecated.Set the SMTP server address to use -
setServer
Deprecated. -
setCredentials
Deprecated.since 11.1, usemail.${protocol}.user
andmail.${protocol}.password
insteadSet SMTP credentials. -
setAuthenticator
Deprecated.since 11.1, this method does nothing, usemail.${protocol}.user
andmail.${protocol}.password
instead -
setDebug
public void setDebug(boolean debug) Deprecated. -
getSession
public javax.mail.Session getSession()Deprecated. -
getConfiguration
Deprecated. -
setConfiguration
Deprecated. -
loadConfiguration
Deprecated.- Throws:
IOException
-
send
public void send(javax.mail.internet.MimeMessage message) throws javax.mail.MessagingException Deprecated.- Throws:
javax.mail.MessagingException
-
newMessage
Deprecated. -
sendEmail
public void sendEmail(String from, String to, String subject, String body) throws javax.mail.MessagingException Deprecated.Send a single email.- Throws:
javax.mail.MessagingException
-
MailSender
instead