Software AG Products 10.7 | Integrating On-Premises and Cloud Applications | Service Development | Submitting and Receiving XML Documents | Submitting and Receiving XML via E-mail | Using pub.client:smtp to Submit an XML Document via Email
 
Using pub.client:smtp to Submit an XML Document via Email
If the client is a service running in an Integration Server, the client can invoke pub.client:smtp to submit an XML document via email.
The following describes the input values to supply when invoking pub.client:smtp to submit an XML document as an attachment of an email message. For more information about using this service, see the webMethods Integration Server Built-In Services Reference.
pub.client:smtp input variable
Description
to
A String containing the email address that the Integration Server email port monitors.
subject
A String containing the fully qualified name of the target service that is to process the XML document. For example:
orders:ProcessPO
Note:
If subject is not specified, Integration Server passes the XML document to the global service if it is defined. If the global service is not defined, Integration Server passes the XML document to the default service assigned to the email port, if one is assigned.
from
A String containing the email address where the client expects results. The target service should send its output to this email address.
body
A String containing input variables for the target service in URL query string format. For example:
one=1&two=2&three=3&$user=Administrator&$pass=manage
This example sets five input variables: one, two, and three are set to the values 1, 2 and 3, respectively. The input variables $user and $pass have special meaning to the email port. Use these variables to specify the user name and password for the email port. You must specify $user and $pass if authentication is enabled on the email port.
attachments
A document list containing a single document that specifies the XML document to submit via email.
Key
Value
contenttype
A String containing the content-type of the attachment. Set contenttype to text/xml.

content
or filename
The XML document.
*Specify content to provide a byte array containing the XML document.
*Specify filename to specify the fully qualified name of the file containing the XML document.