Name

p:send-mail — The standard p:send-mail step.

Synopsis

The p:send-mail step sends an email message.

Input portPrimarySequenceContent types
source✔ ✔ any 
Output portPrimarySequenceContent types
result✔  application/xml 
Option nameTypeDefault value
authmap(xs:string, item()+)?()
parametersmap(xs:QName, item()*)?()
serializationmap(xs:QName,item()*)?()
Declaration
1 |<p:declare-step xmlns:p="http://www.w3.org/ns/xproc">
  |   <p:input port="source" sequence="true" content-types="any"/>
  |   <p:output port="result" content-types="application/xml"/>
  |   <p:option name="serialization" as="map(xs:QName,item()*)?"/>
5 |   <p:option name="auth" as="map(xs:string, item()+)?"/>
  |   <p:option name="parameters" as="map(xs:QName, item()*)?"/>
  |</p:declare-step>
Errors
CodeDescription
err:XC0159It is a dynamic error (err:XC0159) if any key in the “auth” map is associated with a value that is not an instance of the required type.
err:XC0160It is a dynamic error (err:XC0160) if any key in the “parameters” map is associated with a value that is not an instance of the required type.
err:XC0161It is a dynamic error (err:XC0161) if the first document on the source port does not conform to the required format.
err:XC0162It is a dynamic error (err:XC0162) if the email cannot be send.
Implementation defined features

Description

The p:send-mail step is defined in the XProc 3.1: Standard Step Library. It is also described on XProcRef.org.