WebSphere Message Broker, Version 8.0.0.7
Operating Systems: AIX, HP-Itanium, Linux, Solaris, Windows, z/OS
See information about the latest product version
See information about the latest product version
Receiving emails
You can configure the EmailInput node to receive an email, with or without an attachment, from an email server that supports Post Office Protocol 3 (POP3) or Internet Message Access Protocol (IMAP).
You can use the Email
server property on the EmailInput node to specify
the protocol, host name, and port of the email server that the broker
uses to receive emails. Alternatively, you can specify a configurable
service name that refers to an EmailServer configurable service that
is defined on the broker. To enable the configurable service, use
the mqsicreateconfigurableservice and mqsichangeproperties commands,
as shown in the following examples:
mqsicreateconfigurableservice MB8BROKER -c EmailServer -o
myEmailConfigurableServiceName
mqsichangeproperties MB8BROKER -c EmailServer -o myEmailConfigurableServiceName
-n serverName -v pop3://myemailserver.com:12345
If the
value of the Email server EmailInput node property is
set to the defined configurable service name, any values set by the
administrator on the command line are used in preference to any statically
defined value.The following list details the order of preference
for value selection:
- The email server URL value that is specified in the EmailServer configurable service serverName property, if a configurable service exists that matches the name that is supplied in the Email server EmailInput node property.
- The email server URL value of the Email server property that is specified directly on the EmailInput node.
While
most configurable service properties are set by using the mqsichangeproperties command,
security identity support, such as an email server user ID and password
pair, is typically set by using the mqsisetdbparms command. Security
identity support can be configured by setting the Security identity EmailInput node property or
EmailServer configurable service securityIdentity property
to reference a security identity object. However, the security identity
object must first be created by using the mqsisetdbparms command, for
example:
mqsisetdbparms MB8BROKER -n email::mySecurityIdentity -u myUserID -p myPassword
mqsichangeproperties MB8BROKER -c EmailServer -o myEmailConfigurableServiceName -n
securityIdentity -v mySecurityIdentity
For more information about email server security identity support, see mqsisetdbparms command.
The topics in this section describe the different ways in which you can use the EmailInput node to receive email messages.
- To receive an email, see Receiving an email.
- To configure the email server URL and security identity for the EmailInput node as a broker external resource, see Changing connection information for the EmailInput node.