xsl-list
[Top] [All Lists]

RE: [xsl] Question about send_email - separator for multiple recipients - need help!!!!!

2007-05-01 07:21:39
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[(_at_)name= 'MMEmail']/fmrs:data[1]"/> <xsl:variable name="emailWaivbody" select="$record/fmrs:field[(_at_)name= 'CreateWaiver']/fmrs:data[1]"/> <xsl:variable name="subject" select="$record/fmrs:field[(_at_)name= 'NewWaiverSubj']/fmrs:data[1]"/>



<xsl:variable name="emailreturn" select="fmxslt:send_email(concat($toemail,'?from=sgasch(_at_)sindbad(_dot_)gsfc(_dot_)nasa(_dot_)gov&amp;cc=sgasch(_at_)csc(_dot_)com&amp;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.

Try doing the standard things to get a useful answer on this list.

1) Show a relevant sample of your XML input.
2) Show the XSLT you are using that doesn't do what you want.
3) Show the output you want.
4) Show the output you are getting.

--
Charles Knell
cknell(_at_)onebox(_dot_)com - email



-----Original Message-----
From:     Shirley Gasch <sgasch(_at_)sindbad(_dot_)gsfc(_dot_)nasa(_dot_)gov>
Sent:     Tue, 1 May 2007 09:58:24 -0400
To:       <xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com>
Subject: [xsl] Question about send_email - separator for multiple recipients - need help!!!!!

Hi Everyone,

When I use just one recipient's email address in the "To Field",
send_email works. However, when I put in more than one, it fails. I
believe that the problem is in tthe separator that I used in between
the email addresses. I tried each of the following, but none worked:

;
:
carriage return
,
space

I am using XSLT stylesheet and XML Version 1.0 with Filemaker Pro 7,
but I don't believe that it is a Filemaker Issue.

Please help!!!!!

Shirley Gasch
--
Shirley Gasch                                         Phone:  (301) 794-2164
Computer Sciences Corporation       Fax:    (301) 794-8355
7700 Hubble Drive, Rm N384
Lanham/Seabrook, Md.  20706         email: sgasch(_at_)csc(_dot_)com

--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--




--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--

--
Shirley Gasch                                         Phone:  (301) 794-2164
Computer Sciences Corporation       Fax:    (301) 794-8355
7700 Hubble Drive, Rm N384
Lanham/Seabrook, Md.  20706         email: sgasch(_at_)csc(_dot_)com

--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--