Public Member Functions | |
setFormMessage ($xml="") | |
Set the form message to be the output XML from an XForm. |
An extension of the Mailer class that parses the output XML of an XForm and adds it to an outgoing email.
FormsMailer::setFormMessage | ( | $ | xml = "" |
) |
Set the form message to be the output XML from an XForm.
This function accepts an XML string that is the output XML from an XForm. It then parses through the XML string, formatting the name and value of each node as pretty output for email. Finally, it sets the message content to be the formatted XML output.
$xml | [string]: Output XML from XForms |