[Home] [By Thread] [By Date] [Recent Entries]
Here is my XML/XSLT:
<form method="post" name="EccrPrint"><xsl:attribute name="action">FrezMod.xsl</xsl:attribute> <input type="hidden" name="-db" value="WebWaivers"/> <input type="hidden" name="-lay" value="Normal"/> <input type="hidden" name="-token.error" value="record_detail_error.xsl"/> <input type="hidden" name="-script" value="SetupEmailNewWaiver"/> <input type="hidden" name="-recid" value="{$default-record/@recid}"/> <xsl:variable name="record" select="/fmrs:fmresultset/fmrs:resultset/fmrs:record[1]"/> <xsl:variable name="toemail" select="$record/fmrs:field[@name= 'MMEmail']/fmrs:data[1]"/> <xsl:variable name="emailWaivbody" select="$record/fmrs:field[@name= 'CreateWaiver']/fmrs:data[1]"/> <xsl:variable name="subject" select="$record/fmrs:field[@name= 'NewWaiverSubj']/fmrs:data[1]"/> <xsl:variable name="emailreturn" select="fmxslt:send_email(concat($toemail,'?from=sgasch@xxxxxxxxxxxxxxxxxxxxx&cc=sgasch@xxxxxxx&subject=',$subject),$emailWaivbody)"/> <xsl:value-of select="fmxslt:check_error_status()"/> <script type="text/javascript">this.window.close();</script> <xsl:choose> <xsl:when test="$emailreturn = true()"> <p>E-mail 1 has been sent.</p> </xsl:when> <xsl:otherwise> <p>E-mail error 1.</p> </xsl:otherwise> </xsl:choose> </form></xsl:when></xsl:choose> I am using a Filemaker Pro Extension Function (fmxslt), but the documentation is so bad that there are no details about the individual fields. Between Filemaker 6 and Filemaker 7/8, the functionality to send mail was moved from scripts inside Filemaker (where a separator of ";" worked) to XSLT reply pages. What happens when I attempt to send an email with multiple recipients is that I get an error message about the "To Field". Hope this helps to explain what is happening. Shirley Gasch XML (and by extension XSLT) has no concept of "field". "send_email" is not related to XSLT.
|

Cart



