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.

escaping special characters for send_email

Featured Replies

Hi,

I'm essentially using the configuration described on the following web page to send emails via XSL from the server (FMS9A).

http://www.grahamsprague.com/server_side_email/server_side_email.html

In short, the user clicks a button to run a script. The script creates a record in an "Email" table containing the email fields. It then opens the web address to the XSL (send_email.xsl, attached), which attempts to send the email.

It works fine, except when one of the email fields contains a special character (for example, an ampersand in the Subject). In that case, I get error 10202 ("Message SMTP fields error") from the send_email() function.

Do I need to translate special characters in my script, or in my XSL? I read the following thread:

http://fmforums.com/forum/showtopic.php?tid/193094/post/280665/

But to be honest, I'm not sure how it applies in this case as I'm not using Fusion Charts or anything like that.

send_email_xsl.zip

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.