B2B Integration : Trading Networks Built-In Services Reference : Transport Folder : Summary of Elements in this Folder : wm.tn.transport:Smtp
wm.tn.transport:Smtp
Delivers documents through SMTP. This service uses the delivery method information from the receiving partner's profile for the delivery method that uses email as the delivery method. The information determines the email address to use to deliver the document.
Input Parameters
serviceName
String The name of the delivery method that must be used to deliver the document through SMTP.
bizdoc
Document The document you want to deliver.
If invoking from a Java program, the document must be an instance of com.wm.app.tn.doc.BizDocEnvelope. Otherwise, the structure of bizdoc is defined by wm.tn.rec:BizDocEnvelope.
retriesRemaining
String The number of retries remaining. The delivery engine passes this information into the server at every attempt of job delivery.
Output Parameters
serviceOutput
Document The output from the delivery. For the structure of serviceOutput, see wm.tn.rec:SmtpDeliveryServiceOutput. The document contains the following keys:
*status String The outcome of the delivery: either success or fail.
*statusMessage String The status message from the last attempt to deliver the document. For example, the status message might be “Mail was sent successfully.”
*transportTime String Total time (in milliseconds) it took to deliver the document.
*output Document For the structure of output, see wm.tn.rec:SmtpOutput.
Usage Notes
If the receiver identified in bizdoc (the partner to receive the document being delivered) is the local partner (the host of the network), this service throws an exception.
Copyright © 2016- 2017 Software AG, Darmstadt, Germany.

Product LogoContact Support   |   Community   |   Feedback