Jump to content
View in the app

A better way to browse. Learn more.

FMForums.com

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Featured Replies

I was trying to use code I found from this forum to send_mail after adding a record. This is my calling page to send the mail. My data gets added the the database but the "email_status" is never true(). Any idea what the problem is, I tried 2 ways of doing this.

 

The 1st way

.

<xsl:variable name="record" select="/fmrs:fmresultset/fmrs:resultset/fmrs:record[1]"/>

<xsl:variable name="subject" select="$record/fmrs:field[@name = 'title']/fmrs:data[1]"/>

<xsl:variable name="description" select="$record/fmrs:field[@name = 'description']/fmrs:data[1]"/>

.

.

<td><xsl:value-of select="$subject"/></td>

<td><xsl:value-of select="$description"/></td>

.

.

<xsl:variable name="email_status" select="fmxslt:send_email(concat('[email protected][email protected]&amp;subject=',$subject),concat('The following e-mail is for you: ',$description))"/>



The 2nd way

.

<xsl:variable name="bz" select="fmrs:resultset/fmrs:record[1]"/> 

<xsl:variable name="email_status" select="fmxslt:send_email('[email protected][email protected]&amp;subject=Music 

Connection has received your BOM',concat('Title:',$bz/fmrs:field[@name='title']/fmrs:data[1],'&#xD;','Description:',$bz/fmrs:field[@name='description']/fmrs:data[1]))"/>  



Then to test if email was sent I do the following:

        <!-- this checks if e-mail was sent -->

        <xsl:choose>

          <xsl:when test="$email_status = true()">

            <p>E-mail has been sent.</p>

          </xsl:when>

          <xsl:otherwise>

            <p>E-mail error.</p>

          </xsl:otherwise>

        </xsl:choose>

 

Thanks for any help,

Doug

Hmm. I don't know. Did you configure the mail option in the FMSA Web Publishing admin console?

  • Author

In the fmsa web publishing admin console in publishing engine, xslt publishing both "requests and output pages" and "email messages" are set to utf-8.

Any other suggestions.

The other day I never did get them links to work either.

Thanks,

Doug

And the SMTP settings are filled out?

  • Author

I have my smtp correct now. I tried this but still get false when trying to send mail through .xsl biz.

Thanks again,

Doug

  • Author

Thanks Martin.

Got it!

Doug

Create an account or sign in to comment

Important Information

By using this site, you agree to our Terms of Use.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.