Package org.jgrapes.mail
package org.jgrapes.mail
Components for handling mail.
The components are based on the Jakarta Mail API.
All components handle
ConfigurationUpdate
events. They
process properties from three paths:
/org.jgrapes.mail/Component
/org_jgrapes_mail/Component
/org.jgrapes.mail/
+ component class name/org_jgrapes_mail/
+ component class name- The path return by
Manager.componentPath()
With the properties from the later sources taking precedence.
In each source, there can be a sub-section “.../mail
”. The valid keys
in this sub-section are all properties defined for
Jakarta Mail
with the prefix “mail.
” removed to avoid unnecessary redundancy.
The additional key/value defined with the paths above are used to call the respective setter methods of the component.
Example configuration using
JsonConfigurationStore
:
{
"/org.jgrapes.mail": {
"/Component": {
"/mail": {
"user": "..."
},
"password": "..."
},
"/MailMonitor": {
"/mail": {
"host": "...",
"store.protocol": "imap",
"imap.ssl.enable": "true",
"imap.port": 993
}
},
"/MailSender": {
"/mail": {
"host": "...",
"transport.protocol": "smtp",
"smtp.ssl.enable": "true",
"smtp.port": 465,
"smtp.auth": true
}
}
}
}
-
ClassDescriptionA variant of
InternetAddress
that can be used as aPrincipal
.A special sub channel used for sending and receiving mail.Provides a base class for mail components using connections.A component that opens mail stores and monitors mail folders for mails.A component that sends mail using a system wide or user specific connection.